Beyond Active Record

Beyond Active Record

110cd4dcaed019b3bd9809e541afdeb6?s=128

Masafumi Okura

September 26, 2019
Tweet

Transcript

  1. Active Recordͷ ޲͜͏ଆ Place: Rails Developers Beer Bash Date: 2019-09-26

    Speaker: େ૔խ࢙
  2. ࣗݾ঺հ • ໊લɿେ૔խ࢙ • ৬ۀɿϑϦʔϥϯεͷRubyϓϩάϥϚ • ҰݴɿVimConfͷӡӦ΍ͬͯ·͢ɺ11݄3೔։ ࠵ʂνέοτ·ͩ͋ΔΑʂ • ೋݴɿGrow.rbͱ͍͏ίϛϡχςΟ΍ͬͯ·͢

  3. ActiveRecord ޷͖ͳਓ✋

  4. Ruby Weekly ஌͍ͬͯΔਓ✋

  5. ࠓ೔ͷLTͷ͖͔͚ͬ

  6. https://rubyweekly.com/ issues/467

  7. > Active Record is the worst of all the popular

    ORM patterns
  8. None
  9. ຊ౰ʹͦ͏ͳͷ͔ʁ

  10. ʮRuby on Railsͷ ਖ਼ମͱ޲͖߹͍ํʯ https://speakerdeck.com/yasaichi/what-is-ruby-on-rails- and-how-to-deal-with-it

  11. Active RecordͰ͸ίʔϧ όοΫͱόϦσʔγϣϯͰ σʔλϞσϧͱϢʔεέʔε ͕ີ݁߹͓ͯ͠ΓɺͦΕ͕ߴ ଎։ൃΛՄೳʹ͍ͯ͠Δ

  12. ີ݁߹͸ѱ☠

  13. Active Record͸ಉ͡σʔλ Ϟσϧʹෳ਺ͷϢʔεέʔε ͕ద༻͞ΕΔͱਏ͘ͳΔ

  14. ͜Ε·ͰʹఏҊ͞Εͨղܾࡦ

  15. ʮRuby (off|with) the Railsʯ https://speakerdeck.com/shinpeim/ruby-off-with-the- rails

  16. Ϣʔεέʔε͕ҟͳΔෳ਺ͷ Ϟσϧ͕ಉ͡ςʔϒϧΛࢀর ͢Δ

  17. ʮApplicationModel ͷ͋Δ ෩ܠʯ https://speakerdeck.com/hshimoyama/rails-with- applicationmodel

  18. ςʔϒϧʹඥ෇͔ͳ͍Ϟσϧ ʢApplicationModelʣΛఆ ٛ͢Δ

  19. ͦͯ͠ɺօ͞Μ͓ͳ͡Έͷ αʔϏεΫϥε

  20. ͲΕ΋Αͦ͞͏☺

  21. ͕ͩͲΕ΋ެࣜͰ͸ͳ͍

  22. ͱ͜ΖͰɺ࠷ۙͷDHHͷൃݴ Λฉ͍͍ͯΔͱɺ ʮ౷߹͞ΕͨγεςϜ ʢintegrated systemsʣʯ ʮ૳ݫͳϞϊϦε ʢmajestic monolithsʣʯ ΁ͷݴٴ͕ଟ͍

  23. https://rubyonrails.org/ doctrine/#integrated- systems

  24. ໌֬ͳϞϊϦεࢦ޲

  25. ࠷ۙͷRails͸Active Storage ΍ϚϧνDBػೳͷΑ͏ʹgem ͷػೳΛऔΓࠐΈͭͭ͋Δ

  26. ཚཱ͢ΔαʔϏεΫϥεϥΠ ϒϥϦ

  27. DHH͞ΜɺActive Recordͷ ্ʹ৐ͤΔύλʔϯ ΋”Omakase”Ͱग़ͯ͘͠Ε· ͤΜ͔Ͷʁ

  28. ·ͱΊ • Active Recordύλʔϯ͸࠷ॳ͸͍͍΍ͭɺͩ ͕ͦͷ͏ͪਏ͘ͳΔ • ղܾࡦ͸͢Ͱʹෳ਺ఏҊ͞Ε͍ͯΔ͕ɺެࣜ ͷ΋ͷ͸ͳ͍ • ʮ౷߹͞ΕͨγεςϜʯͷதʹղܾࡦ͕ೖͬͯ

    ͘Δͱ΋ͬͱྑ͘ͳΓ·͢Ͷʂ