Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Ruby Sapporo Night Vol3

3,713 views

Published on

Published in: Technology
  • Be the first to comment

Ruby Sapporo Night Vol3

  1. 1. Ruby presents Ruby snoozer.05@gmail.com AppleStoreSapporo 2007-10-31( )
  2. 2. ✓ ✓ Ruby ✓ Ruby ✓ Leopard Ruby ✓ Ruby on Rails Active Record ✓
  3. 3. ✓ ✓ Ruby ✓ Ruby ✓ Leopard Ruby ✓ Ruby on Rails Active Record ✓
  4. 4. snoozer.05 ✓ ✓ ʻ06 ✓ Ruby ✓ Ruby ✓ RubyKaigi2007 ✓ ✓ ✓ ✓ http://iddy.jp/profile/snoozer05
  5. 5. http://rubyist_level.jitor.net/
  6. 6. http://rubyist_level.jitor.net/
  7. 7. http://noplans.org/product/t-shirt/
  8. 8. ✓ ✓ Ruby ✓ Ruby ✓ Leopard Ruby ✓ Ruby on Rails Active Record ✓
  9. 9. ✓ ✓ Ruby ✓ Ruby ✓ Leopard Ruby ✓ Ruby on Rails Active Record ✓
  10. 10. Ruby
  11. 11. Ruby ✓ ✓ http://www.ruby-lang.org/ja/ ✓ ✓ ✓ ✓ A Programmerʼs Best Friend
  12. 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. 13. Ruby ✓ PHPer Ruby - http://www.slideshare.net/masuidrive/ ruby-90109 ✓ Java Ruby - http://www.kbmj.com/tech/index.php? itemid=25
  14. 14. ✓ ✓ Ruby ✓ Ruby ✓ Leopard Ruby ✓ Ruby on Rails Active Record ✓
  15. 15. ✓ ✓ Ruby ✓ Ruby ✓ Leopard Ruby ✓ Ruby on Rails Active Record ✓
  16. 16. Ruby
  17. 17. Ruby ✓ Ruby ✓ “From Sapporo, With Love For Ruby.” ✓ Ruby @ ✓ RubySapporoNight ← ✓ @ ✓ Ruby&Rails
  18. 18. http://ruby-sapporo.org/
  19. 19. ✓ ✓ Ruby ✓ Ruby ✓ Leopard Ruby ✓ Ruby on Rails Active Record ✓
  20. 20. ✓ ✓ Ruby ✓ Ruby ✓ Leopard Ruby ✓ Ruby on Rails Active Record ✓
  21. 21. http://www.apple.com/jp/macosx/
  22. 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. 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. 24. http://tarc.macosforge.org/projects/ruby/wiki/ WhatsNewInLeopard
  25. 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. 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. 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. 28. ✓ ✓ Ruby ✓ Ruby ✓ Leopard Ruby ✓ Ruby on Rails Active Record ✓
  29. 29. ✓ ✓ Ruby ✓ Ruby ✓ Leopard Ruby ✓ Ruby on Rails Active Record ✓
  30. 30. Ruby on Rails ActiveRecord
  31. 31. ActiveRecord
  32. 32. ActiveRecord
  33. 33. Rails
  34. 34. Rails MVC M
  35. 35. ORM Object / Relational Mapping
  36. 36. “ RDB ORM RDB RDB ” - IT
  37. 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. 38. ActiveRecord ✓ Rails ✓ MVC M ✓ O/R ✓ P of EAA ʻActive Recordʼ ✓ RDB Ruby
  39. 39. ActiveRecord
  40. 40. AR
  41. 41. DB
  42. 42. ORM
  43. 43. AR::Base
  44. 44. (CRUD)
  45. 45. CRUD
  46. 46. CRUD
  47. 47. CRUD
  48. 48. CRUD
  49. 49. CRUD
  50. 50. DSL
  51. 51. 1 1
  52. 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. 53. 1
  54. 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. 55. 1 * * 1
  56. 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. 57. RDB
  58. 58. AR ✓ DB ✓ CRUD ✓ ✓ ✓ ✓
  59. 59. AR
  60. 60. created_at, created_on
  61. 61. updated_at, updated_on
  62. 62. type STI
  63. 63. acts_as_paranoid http://ar-paranoid.rubyforge.org/
  64. 64. “delete_at” datetime
  65. 65. AR::Observer Observer
  66. 66. acts_as_tree http://wiki.rubyonrails.org/rails/pages/ActsAsTree
  67. 67. “parent_id”
  68. 68. acts_as_list
  69. 69. Composite Primary Keys Plugin http://compositekeys.rubyforge.org
  70. 70. AR
  71. 71. http://d.hatena.ne.jp/mrkn/20071010
  72. 72. Lolcats 'n' Funny Pictures
  73. 73. AR Rails
  74. 74. Ruby on Rails ActiveRecord
  75. 75. ✓ ✓ Ruby ✓ Ruby ✓ Leopard Ruby ✓ Ruby on Rails Active Record ✓
  76. 76. ✓ ✓ Ruby ✓ Ruby ✓ Leopard Ruby ✓ Ruby on Rails Active Record ✓
  77. 77. Ruby @ ✓ 2007 11 17 ✓ ✓ ✓ ✓C Ruby ✓ ✓ ... (ry
  78. 78. RubySapporoNight vol.4 ✓ 2007 11 28 ✓ ✓ ✓ ✓ Ruby on Rails ✓
  79. 79. ✓ ✓ Ruby ✓ Ruby ✓ Leopard Ruby ✓ Ruby on Rails Active Record ✓

×