0
Upcoming SlideShare
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Standard text messaging rates apply

# Ruby開発が教えてくれたこと

71,119

Published on

CEDEC2011 ９月８日招待講演

CEDEC2011 ９月８日招待講演

Published in: Technology
22 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

Views
Total Views
71,119
On Slideshare
0
From Embeds
0
Number of Embeds
12
Actions
Shares
0
93
0
Likes
22
Embeds 0
No embeds

No notes for slide

### Transcript

• 1. Ruby開発が教えてくれたこと (財)Rubyアソシエーション (株)ネットワーク応用通信研究所 (株)楽天 技術研究所 Heroku [New] まつもと ゆきひろ @yukihiro_matz Powered by Rabbit 0.9.2
• 7. プログラミング言語Ruby 開発効率に注目 より簡単に より効率よく より気分よく 6/71 Powered by Rabbit 0.9.2
• 9. プログラマの気分気分が良い時 思った通りに行く時 万能感 我慢しない時 悩まない時 8/71 Powered by Rabbit 0.9.2
• 17. 例題: 階乗factorial, or n! n以下の自然数すべての積 n! = 1×2×3×...×n 16/71 Powered by Rabbit 0.9.2
• 18. 階乗(Java)class Sample { private static int fact(int n) { if (n == 1) return 1; return n * fact(n - 1); } public static void main(String[] argv) { System.out.println("6!="+fact(6)); }} 17/71 Powered by Rabbit 0.9.2
• 19. 階乗(C)#include <stdio.h>intfact(int n){ if (n == 1) return 1; return n * fact(n - 1);}intmain(){ printf("6!=%dn", fact(6));} 18/71 Powered by Rabbit 0.9.2
• 20. 階乗(Ruby)def fact(n) if n == 1 1 else n * fact(n - 1) endendprint "6!=", fact(6), "n" 19/71 Powered by Rabbit 0.9.2
• 21. 階乗(Ruby)def fact(n) (1..n).inject(:*)endprint "6!=", fact(6), "n" 20/71 Powered by Rabbit 0.9.2
• 22. 簡潔な表現get /foo, :agent => /Chrome/ do "Youre using Google Chrome"endget /foo do "Youre using non Chrome browsers"end 21/71 Powered by Rabbit 0.9.2
• 23. 抽象化for (i=0; i<100; i++) { ...}100.times do ...end 22/71 Powered by Rabbit 0.9.2
• 26. 200!print "200!=", fact(200), "n"=> 78865786736479050355236321393218506 22951359776871732632947425332443594 49963403342920304284011984623904177 21213891963883025764279024263710506 19266249528299311134628572707633172 37396988943922445621451664240254033 29186413122742829485327752424240757 39032403212574055795686602260319041 70324062351700858796178922222789623 70389737472000000000000000000000000 0000000000000000000000000 25/71 Powered by Rabbit 0.9.2
• 39. Rubyの認知度2009 松江市名誉市民 島根大学客員教授 ものづくり日本大賞 日本イノベーター大賞 38/71 Powered by Rabbit 0.9.2
• 56. 未来のRuby新しい環境への適応 より広汎 より高速 より分散 より堅固 55/71 Powered by Rabbit 0.9.2
• 58. HPC RubyRuby for High PerformanceComputing 型推論 コンパイル Cに匹敵する速度 57/71 Powered by Rabbit 0.9.2