---
title: 20100226部内勉強会
tags: 
author: [Shigeki Morizane](https://www.docswell.com/user/samuraiRed)
site: [Docswell](https://www.docswell.com/)
thumbnail: https://bcdn.docswell.com/page/V7PX24PVE8.jpg?width=480
description: 20100226部内勉強会 by Shigeki Morizane
published: March 14, 10
canonical: https://www.docswell.com/s/samuraiRed/58GMR2-2023-07-05-123101
---
# Page. 1

![Page Image](https://bcdn.docswell.com/page/V7PX24PVE8.jpg)

保険システム二部
第四グループ
森實
2009-02-26
木場N棟
1811会議室
繁樹
世界一言語愛トークスバトル Round1


# Page. 2

![Page Image](https://bcdn.docswell.com/page/2JVLDX2R7Q.jpg)



# Page. 3

![Page Image](https://bcdn.docswell.com/page/5EGXYVR6JL.jpg)



# Page. 4

![Page Image](https://bcdn.docswell.com/page/4JQ8M6V27P.jpg)



# Page. 5

![Page Image](https://bcdn.docswell.com/page/K742V4MPJ1.jpg)



# Page. 6

![Page Image](https://bcdn.docswell.com/page/LJ1M348XEG.jpg)



# Page. 7

![Page Image](https://bcdn.docswell.com/page/GJW3PXZKJ2.jpg)

Bランクごとき、俺に任せておけ！


# Page. 8

![Page Image](https://bcdn.docswell.com/page/4EZVK61NJ3.jpg)

F1の世界では
「速いマシンは美しい」
「美しくなければ走る資格がない」
と言われている。


# Page. 9

![Page Image](https://bcdn.docswell.com/page/Y765Q2L9EV.jpg)



# Page. 10

![Page Image](https://bcdn.docswell.com/page/G75YR21D74.jpg)



# Page. 11

![Page Image](https://bcdn.docswell.com/page/9J2GD49MJR.jpg)



# Page. 12

![Page Image](https://bcdn.docswell.com/page/DEYV2M4PEM.jpg)



# Page. 13

![Page Image](https://bcdn.docswell.com/page/VJNM8WYM78.jpg)



# Page. 14

![Page Image](https://bcdn.docswell.com/page/YE9NKXPWE3.jpg)

（注1）
（注1） EARLYは嘘です。本当はSPEEDYです;-p


# Page. 15

![Page Image](https://bcdn.docswell.com/page/GE8KR2DR7D.jpg)

本当なら小指一本で倒し
てやりたいところだが、
今日は3つだけ必殺技を
見せてやろう。


# Page. 16

![Page Image](https://bcdn.docswell.com/page/LELZK2M2JR.jpg)



# Page. 17

![Page Image](https://bcdn.docswell.com/page/4JMV28Y9JW.jpg)



# Page. 18

![Page Image](https://bcdn.docswell.com/page/PJR2M599E9.jpg)

Rubyの基礎知識
・1993/2/24生まれ
・生みの親：まつもとゆきひろ
（@yukihiro̲matz）
・オブジェクト指向スクリプト言語
・オープンソース
・日本Rubyの会
⇒http://jp.rubyist.net/


# Page. 19

![Page Image](https://bcdn.docswell.com/page/PEXDVKQ37X.jpg)



# Page. 20

![Page Image](https://bcdn.docswell.com/page/3EKXQ59N7D.jpg)

2010-02-28
東京Ruby会議開催！


# Page. 21

![Page Image](https://bcdn.docswell.com/page/L735PKWZE5.jpg)

オブジェクト指向
且つグルー言語


# Page. 22

![Page Image](https://bcdn.docswell.com/page/87DDL3K47G.jpg)

オブジェクト指向（オブ
ジェクトしこう）とは、
オブジェクト同士の相互
作用としてシステムの振
る舞いをとらえる考え方
である。
出典：http://ja.wikipedia.org/wiki/オブジェクト指向


# Page. 23

![Page Image](https://bcdn.docswell.com/page/VJPX24KV78.jpg)

オブジェクト指向プログラミング
とは、データとそれを操作する手
続きをオブジェクトと呼ばれるひ
とまとまりの単位として一体化し、
オブジェクトの組み合わせとして
プログラムを記述するプログラミ
ング技法。プログラムの部分的な
再利用がしやすくなるなどのメリ
ットがある。
出典：http://e-words.jp/


# Page. 24

![Page Image](https://bcdn.docswell.com/page/2EVLDXVRJQ.jpg)



# Page. 25

![Page Image](https://bcdn.docswell.com/page/57GXYVL6EL.jpg)

なんだかんだ言って、
このくらいでは自分の
愛する言語を曲げるこ
とはしないだろう。


# Page. 26

![Page Image](https://bcdn.docswell.com/page/4EQ8M6Y2JP.jpg)

ただ、同時にそれぞ
れの言語にすばらし
いところがあること
は否定もできまい。


# Page. 27

![Page Image](https://bcdn.docswell.com/page/KJ42V4WPE1.jpg)

ならば呼び出してしまえ！


# Page. 28

![Page Image](https://bcdn.docswell.com/page/LE1M34YX7G.jpg)

グルー言語
(glue language) とはプ
ログラミング用語。「グル
ー」とはにかわの接着剤の
ことで、コンポーネント同
士を結びつけることを主眼
とした言語の総称である。
出典：http://ja.wikipedia.org/wiki/グルー言語


# Page. 29

![Page Image](https://bcdn.docswell.com/page/GEW3PXGKE2.jpg)

つまり、
Cも呼べます。
Javaも呼べます。
Rubyの機能も使えます。


# Page. 30

![Page Image](https://bcdn.docswell.com/page/47ZVK6LNE3.jpg)



# Page. 31

![Page Image](https://bcdn.docswell.com/page/YJ65Q2W97V.jpg)

ｄRubyとRoR


# Page. 32

![Page Image](https://bcdn.docswell.com/page/GJ5YR2MDJ4.jpg)

「Rubyって分散オブジェクトとか
いけるんですか？
やっぱJavaじゃないっすか？
CORBAとかSOAPとか…」


# Page. 33

![Page Image](https://bcdn.docswell.com/page/LE35PK9QJ5.jpg)



# Page. 34

![Page Image](https://bcdn.docswell.com/page/8EDDL3GWEG.jpg)

「なかったので
作りました」


# Page. 35

![Page Image](https://bcdn.docswell.com/page/V7PX243XE8.jpg)

これだよ！
オープンソース！
これだよ！
日本製！


# Page. 36

![Page Image](https://bcdn.docswell.com/page/2JVLDX437Q.jpg)

「でも、新しい言語の習得に時間が
かかっちゃ意味がないんですよね
開発早くなります？」


# Page. 37

![Page Image](https://bcdn.docswell.com/page/5EGXYV1YJL.jpg)

だから！
オープンソース！
だから！？
デンマーク！


# Page. 38

![Page Image](https://bcdn.docswell.com/page/4JQ8M6D67P.jpg)

「なかったので
作りました」
David
Heinemeier
Hansson


# Page. 39

![Page Image](https://bcdn.docswell.com/page/K742V4ZMJ1.jpg)

Ruby on Rails
（ルビーオンレイルズ）はオープンソ
ースのWebアプリケーションフレー
ムワークである。RoRまたは単に
Railsと呼ばれる。その名にも示され
ているようにRubyで書かれている。
またModel View Controller
(MVC)アーキテクチャに基づいて
構築されている。
出典：http://ja.wikipedia.org/wiki/Ruby̲on̲Rails


# Page. 40

![Page Image](https://bcdn.docswell.com/page/LJ1M34RYEG.jpg)

Railsの基本理念は「同じことを繰り返
さない」
(DRY:Don t Repeat Yourself)
と「設定より規約」
(CoC:Convention over
Configuration)である。
例えばデータベースから読み取るべき属
性名等を指定する必要はない。
ActiveRecordはRDBMSの表定義か
ら自動的にその情報を取得する。
出典：http://ja.wikipedia.org/wiki/Ruby̲on̲Rails


# Page. 41

![Page Image](https://bcdn.docswell.com/page/GJW3PX11J2.jpg)

出典：http://masuidrive.jp/rails/rails̲install.html


# Page. 42

![Page Image](https://bcdn.docswell.com/page/4EZVK6PXJ3.jpg)

出典：http://masuidrive.jp/rails/rails̲install.html


# Page. 43

![Page Image](https://bcdn.docswell.com/page/Y765Q2MPEV.jpg)



# Page. 44

![Page Image](https://bcdn.docswell.com/page/G75YR2ZP74.jpg)



# Page. 45

![Page Image](https://bcdn.docswell.com/page/9J2GD4RZJR.jpg)

コンパイルはいらないし、テスト用
クラスは用意されてるし、拡張クラ
スはたくさんあるし、分散オブジェ
クトプログラミングに耐えられるし
ExcelとかWordはもちろん、OS
に対しても処理できるし、何より軽
いし、型表記とかいらないし、正規
表現とかもそれなりに強いし、
Javaに真似されてJRubyなるも
のもあるし、アジャイルとの親和…


# Page. 46

![Page Image](https://bcdn.docswell.com/page/DEYV2MDNEM.jpg)



# Page. 47

![Page Image](https://bcdn.docswell.com/page/VJNM8W6V78.jpg)

Philosophy
of Ruby


# Page. 48

![Page Image](https://bcdn.docswell.com/page/YE9NKXLVE3.jpg)

まつもとゆきひろ氏曰く


# Page. 49

![Page Image](https://bcdn.docswell.com/page/GE8KR2X47D.jpg)

「Rubyの言語仕様策定に
おいて最も重視している
のはストレスなくプログ
ラミングを楽しむことで
ある
(Enjoy programming)」


# Page. 50

![Page Image](https://bcdn.docswell.com/page/LELZK28VJR.jpg)

俺たちが求めているの
はこれではないのか？
違うか？
否定できるか？


# Page. 51

![Page Image](https://bcdn.docswell.com/page/4JMV286NJW.jpg)

RoRのサイトにだって！
出典：http://rubyonrails.org/


# Page. 52

![Page Image](https://bcdn.docswell.com/page/PJR2M5P4E9.jpg)



# Page. 53

![Page Image](https://bcdn.docswell.com/page/PEXDVK3Z7X.jpg)



# Page. 54

![Page Image](https://bcdn.docswell.com/page/3EKXQ5YV7D.jpg)



# Page. 55

![Page Image](https://bcdn.docswell.com/page/L735PKVQE5.jpg)



# Page. 56

![Page Image](https://bcdn.docswell.com/page/87DDL38W7G.jpg)



# Page. 57

![Page Image](https://bcdn.docswell.com/page/VJPX248X78.jpg)

（注1）
（注1） EARLYは嘘です。本当はSPEEDYです;-p


# Page. 58

![Page Image](https://bcdn.docswell.com/page/2EVLDXN3JQ.jpg)



# Page. 59

![Page Image](https://bcdn.docswell.com/page/57GXYVKYEL.jpg)



# Page. 60

![Page Image](https://bcdn.docswell.com/page/4EQ8M6N6JP.jpg)



# Page. 61

![Page Image](https://bcdn.docswell.com/page/KJ42V4GME1.jpg)



# Page. 62

![Page Image](https://bcdn.docswell.com/page/LE1M34DY7G.jpg)

時間が余ったら


# Page. 63

![Page Image](https://bcdn.docswell.com/page/GEW3PXY1E2.jpg)



# Page. 64

![Page Image](https://bcdn.docswell.com/page/47ZVK6XXE3.jpg)

From Java to Ruby
Time has come!!


# Page. 65

![Page Image](https://bcdn.docswell.com/page/YJ65Q24P7V.jpg)

ご静聴ありがとうございました。


