Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Beyond Active Record
Search
Masafumi Okura
September 26, 2019
Programming
3
650
Beyond Active Record
Masafumi Okura
September 26, 2019
Tweet
Share
More Decks by Masafumi Okura
See All by Masafumi Okura
Creating gems 101
okuramasafumi
1
32
How NOT to make your DSL terrible
okuramasafumi
0
240
オブジェクトしこう
okuramasafumi
2
200
Debugging Alba
okuramasafumi
1
170
Learning Ruby
okuramasafumi
5
520
How to build a conference for both newbies and seasoned devs
okuramasafumi
1
1.6k
Why doesn't Ruby have Boolean class?
okuramasafumi
4
2.1k
Writing Minitest clone in 30 minutes
okuramasafumi
0
460
Developing a Vim plugin with Ruby
okuramasafumi
0
640
Other Decks in Programming
See All in Programming
null or undefined
susisu
19
4k
Using Livebook to build and deploy internal tools @ ElixirConf 2024
hugobarauna
0
210
Ruby Parser progress report 2024
yui_knk
2
180
実践 Advanced CallKit 〜快適な通話の実現に向けて〜
mot_techtalk
3
110
Polars を Kaggle コンペで使ってみた(LMSYS Chatbot Arena)
kohecchi
1
360
開発を加速する共有Swift Package実践
elmetal
PRO
0
300
TypeScriptとGraphQLを活用した変化に強いプロダクト作り
bicstone
4
530
大公開!iOS開発の悩みトップ5 〜iOSDC Japan 2024〜
ryunakayama
0
180
状態管理ライブラリZustandの導入から運用まで
k1tikurisu
2
230
REXML改善のその後
naitoh
0
150
Some more adventure of Happy Eyeballs
coe401_
2
150
eBPF Japan Meetup のご紹介
kentatada
0
140
Featured
See All Featured
Gamification - CAS2011
davidbonilla
79
4.9k
BBQ
matthewcrist
83
9.1k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
32k
The Cost Of JavaScript in 2023
addyosmani
39
5.1k
Bash Introduction
62gerente
608
210k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
190
16k
Automating Front-end Workflow
addyosmani
1365
200k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
157
15k
Web development in the modern age
philhawksworth
204
10k
Build your cross-platform service in a week with App Engine
jlugia
228
18k
StorybookのUI Testing Handbookを読んだ
zakiyama
25
5k
Being A Developer After 40
akosma
82
580k
Transcript
Active Recordͷ ͜͏ଆ Place: Rails Developers Beer Bash Date: 2019-09-26
Speaker: େխ࢙
ࣗݾհ • ໊લɿେխ࢙ • ৬ۀɿϑϦʔϥϯεͷRubyϓϩάϥϚ • ҰݴɿVimConfͷӡӦͬͯ·͢ɺ11݄3։ ࠵ʂνέοτ·ͩ͋ΔΑʂ • ೋݴɿGrow.rbͱ͍͏ίϛϡχςΟͬͯ·͢
ActiveRecord ͖ͳਓ✋
Ruby Weekly ͍ͬͯΔਓ✋
ࠓͷLTͷ͖͔͚ͬ
https://rubyweekly.com/ issues/467
> Active Record is the worst of all the popular
ORM patterns
None
ຊʹͦ͏ͳͷ͔ʁ
ʮRuby on Railsͷ ਖ਼ମͱ͖߹͍ํʯ https://speakerdeck.com/yasaichi/what-is-ruby-on-rails- and-how-to-deal-with-it
Active RecordͰίʔϧ όοΫͱόϦσʔγϣϯͰ σʔλϞσϧͱϢʔεέʔε ͕ີ݁߹͓ͯ͠ΓɺͦΕ͕ߴ ։ൃΛՄೳʹ͍ͯ͠Δ
ີ݁߹ѱ☠
Active Recordಉ͡σʔλ ϞσϧʹෳͷϢʔεέʔε ͕ద༻͞ΕΔͱਏ͘ͳΔ
͜Ε·ͰʹఏҊ͞Εͨղܾࡦ
ʮRuby (off|with) the Railsʯ https://speakerdeck.com/shinpeim/ruby-off-with-the- rails
Ϣʔεέʔε͕ҟͳΔෳͷ Ϟσϧ͕ಉ͡ςʔϒϧΛࢀর ͢Δ
ʮApplicationModel ͷ͋Δ ෩ܠʯ https://speakerdeck.com/hshimoyama/rails-with- applicationmodel
ςʔϒϧʹඥ͔ͳ͍Ϟσϧ ʢApplicationModelʣΛఆ ٛ͢Δ
ͦͯ͠ɺօ͞Μ͓ͳ͡Έͷ αʔϏεΫϥε
ͲΕΑͦ͞͏☺
͕ͩͲΕެࣜͰͳ͍
ͱ͜ΖͰɺ࠷ۙͷDHHͷൃݴ Λฉ͍͍ͯΔͱɺ ʮ౷߹͞ΕͨγεςϜ ʢintegrated systemsʣʯ ʮݫͳϞϊϦε ʢmajestic monolithsʣʯ ͷݴٴ͕ଟ͍
https://rubyonrails.org/ doctrine/#integrated- systems
໌֬ͳϞϊϦεࢦ
࠷ۙͷRailsActive Storage ϚϧνDBػೳͷΑ͏ʹgem ͷػೳΛऔΓࠐΈͭͭ͋Δ
ཚཱ͢ΔαʔϏεΫϥεϥΠ ϒϥϦ
DHH͞ΜɺActive Recordͷ ্ʹͤΔύλʔϯ ”Omakase”Ͱग़ͯ͘͠Ε· ͤΜ͔Ͷʁ
·ͱΊ • Active Recordύλʔϯ࠷ॳ͍͍ͭɺͩ ͕ͦͷ͏ͪਏ͘ͳΔ • ղܾࡦ͢ͰʹෳఏҊ͞Ε͍ͯΔ͕ɺެࣜ ͷͷͳ͍ • ʮ౷߹͞ΕͨγεςϜʯͷதʹղܾࡦ͕ೖͬͯ
͘Δͱͬͱྑ͘ͳΓ·͢Ͷʂ