Your SlideShare is downloading. ×
Ruby Sapporo Night Vol3
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Ruby Sapporo Night Vol3

3,272
views

Published on

Published in: Technology

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,272
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
75
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Ruby presents Ruby snoozer.05@gmail.com AppleStoreSapporo 2007-10-31( )
  • 2. ✓ ✓ Ruby ✓ Ruby ✓ Leopard Ruby ✓ Ruby on Rails Active Record ✓
  • 3. ✓ ✓ Ruby ✓ Ruby ✓ Leopard Ruby ✓ Ruby on Rails Active Record ✓
  • 4. snoozer.05 ✓ ✓ ʻ06 ✓ Ruby ✓ Ruby ✓ RubyKaigi2007 ✓ ✓ ✓ ✓ http://iddy.jp/profile/snoozer05
  • 5. http://rubyist_level.jitor.net/
  • 6. http://rubyist_level.jitor.net/
  • 7. http://noplans.org/product/t-shirt/
  • 8. ✓ ✓ Ruby ✓ Ruby ✓ Leopard Ruby ✓ Ruby on Rails Active Record ✓
  • 9. ✓ ✓ Ruby ✓ Ruby ✓ Leopard Ruby ✓ Ruby on Rails Active Record ✓
  • 10. Ruby
  • 11. Ruby ✓ ✓ http://www.ruby-lang.org/ja/ ✓ ✓ ✓ ✓ A Programmerʼs Best Friend
  • 12. Ruby ✓ - http://www.ruby-lang.org/ja/install.cgi ✓ - http://www.ruby-lang.org/ja/man/ ✓ - http://www.ruby-lang.org/ja/man/
  • 13. Ruby ✓ PHPer Ruby - http://www.slideshare.net/masuidrive/ ruby-90109 ✓ Java Ruby - http://www.kbmj.com/tech/index.php? itemid=25
  • 14. ✓ ✓ Ruby ✓ Ruby ✓ Leopard Ruby ✓ Ruby on Rails Active Record ✓
  • 15. ✓ ✓ Ruby ✓ Ruby ✓ Leopard Ruby ✓ Ruby on Rails Active Record ✓
  • 16. Ruby
  • 17. Ruby ✓ Ruby ✓ “From Sapporo, With Love For Ruby.” ✓ Ruby @ ✓ RubySapporoNight ← ✓ @ ✓ Ruby&Rails
  • 18. http://ruby-sapporo.org/
  • 19. ✓ ✓ Ruby ✓ Ruby ✓ Leopard Ruby ✓ Ruby on Rails Active Record ✓
  • 20. ✓ ✓ Ruby ✓ Ruby ✓ Leopard Ruby ✓ Ruby on Rails Active Record ✓
  • 21. http://www.apple.com/jp/macosx/
  • 22. “One of the most exciting features for me as a Rubyist is the inclusion of a well Ruby installation.” - Chad Fowler http://www.chadfowler.cm/2007/10/28/ ruby-on-leopard
  • 23. Ruby and Leopard ✓ Ruby : 1.8.6 p36 ✓ RubyGems : 0.9.4 ✓ Ruby on Rails : 1.2.3 ✓ RubyCocoa : 1.0.0 ✓ XCode and Interface Builder ✓ Capistrano, Mongorel
  • 24. http://tarc.macosforge.org/projects/ruby/wiki/ WhatsNewInLeopard
  • 25. “Apple’s latest OS ships with an improved Ruby, but it’s not an un-crippled Ruby - it’s just a less-crippled Ruby.” - Giles Bowkett http://gilesbowkett.blogspot.com/2007/10/ apples-ruby-communities-not-features
  • 26. “Apple’s latest OS ships with an improved Ruby, but it’s not an un-crippled Ruby - it’s just a less-crippled Ruby.” - Giles Bowkett http://gilesbowkett.blogspot.com/2007/10/ apples-ruby-communities-not-features
  • 27. “Apple’s latest OS ships with an improved Ruby, but it’s not an un-crippled Ruby - it’s just a less-crippled Ruby.” - Giles Bowkett http://gilesbowkett.blogspot.com/2007/10/ apples-ruby-communities-not-features
  • 28. ✓ ✓ Ruby ✓ Ruby ✓ Leopard Ruby ✓ Ruby on Rails Active Record ✓
  • 29. ✓ ✓ Ruby ✓ Ruby ✓ Leopard Ruby ✓ Ruby on Rails Active Record ✓
  • 30. Ruby on Rails ActiveRecord
  • 31. ActiveRecord
  • 32. ActiveRecord
  • 33. Rails
  • 34. Rails MVC M
  • 35. ORM Object / Relational Mapping
  • 36. “ RDB ORM RDB RDB ” - IT
  • 37. Active Record “An object that wraps a row in a database table or view, encapsules the database access, and adds domain logic on that data.”
  • 38. ActiveRecord ✓ Rails ✓ MVC M ✓ O/R ✓ P of EAA ʻActive Recordʼ ✓ RDB Ruby
  • 39. ActiveRecord
  • 40. AR
  • 41. DB
  • 42. ORM
  • 43. AR::Base
  • 44. (CRUD)
  • 45. CRUD
  • 46. CRUD
  • 47. CRUD
  • 48. CRUD
  • 49. CRUD
  • 50. DSL
  • 51. 1 1
  • 52. One-to-One has_one user = User.find(:first) user.profile user.profile.nil? user.create_profile(:firstname => “foo”) belongs_to prof = Profile.find(:first) prof.create_user(:login => “snoozer.05”) prof.user.nil? prof.user = user
  • 53. 1
  • 54. One-to-Many has_many apple_store = Site.find(:first) apple_store.events apple_store.events.create(:name => “RSN”) apple_store.events << event belongs_to rsn = Event.find(1) rsn.site.nil? rsn.site = apple_store
  • 55. 1 * * 1
  • 56. Many-to-Many has_many user.register_events user.register_events.nil? user.register_events << event has_many event.members event.members.nil? event.members << user
  • 57. RDB
  • 58. AR ✓ DB ✓ CRUD ✓ ✓ ✓ ✓
  • 59. AR
  • 60. created_at, created_on
  • 61. updated_at, updated_on
  • 62. type STI
  • 63. acts_as_paranoid http://ar-paranoid.rubyforge.org/
  • 64. “delete_at” datetime
  • 65. AR::Observer Observer
  • 66. acts_as_tree http://wiki.rubyonrails.org/rails/pages/ActsAsTree
  • 67. “parent_id”
  • 68. acts_as_list
  • 69. Composite Primary Keys Plugin http://compositekeys.rubyforge.org
  • 70. AR
  • 71. http://d.hatena.ne.jp/mrkn/20071010
  • 72. Lolcats 'n' Funny Pictures
  • 73. AR Rails
  • 74. Ruby on Rails ActiveRecord
  • 75. ✓ ✓ Ruby ✓ Ruby ✓ Leopard Ruby ✓ Ruby on Rails Active Record ✓
  • 76. ✓ ✓ Ruby ✓ Ruby ✓ Leopard Ruby ✓ Ruby on Rails Active Record ✓
  • 77. Ruby @ ✓ 2007 11 17 ✓ ✓ ✓ ✓C Ruby ✓ ✓ ... (ry
  • 78. RubySapporoNight vol.4 ✓ 2007 11 28 ✓ ✓ ✓ ✓ Ruby on Rails ✓
  • 79. ✓ ✓ Ruby ✓ Ruby ✓ Leopard Ruby ✓ Ruby on Rails Active Record ✓