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
書籍紹介LT:現場で使える Ruby on Rails 5 速習実践ガイド
Search
Takuya Matsumoto
January 16, 2019
0
200
書籍紹介LT:現場で使える Ruby on Rails 5 速習実践ガイド
Otemachi.rb#13
Takuya Matsumoto
January 16, 2019
Tweet
Share
More Decks by Takuya Matsumoto
See All by Takuya Matsumoto
STORES におけるセッションストアへの Amazon MemoryDB for Redis の活用と、移行戦略 / MemoryDB for STORES Session Store
upinetree
1
3.5k
STORES へのID基盤の導入と、ユーザーアカウントの移行を振り返って
upinetree
4
2.6k
バックエンド基盤チームのお仕事 / The value of the backend base team
upinetree
0
3.2k
CSSの技術的負債との向き合い方 / How to Deal with Technical Debt of CSS (ja)
upinetree
5
4.2k
How to Deal with Technical Debt of CSS
upinetree
1
540
Introduction to Entering Test Design (Japanese)
upinetree
0
820
Hello React
upinetree
4
270
history of nicorepo gem and me
upinetree
0
150
Visualize team communications on github
upinetree
4
1.2k
Featured
See All Featured
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
106
49k
10 Git Anti Patterns You Should be Aware of
lemiorhan
654
59k
Building Better People: How to give real-time feedback that sticks.
wjessup
363
19k
Why You Should Never Use an ORM
jnunemaker
PRO
53
9k
Designing Experiences People Love
moore
138
23k
Gamification - CAS2011
davidbonilla
80
5k
Designing for humans not robots
tammielis
249
25k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
225
22k
Teambox: Starting and Learning
jrom
132
8.7k
Code Reviewing Like a Champion
maltzj
519
39k
Producing Creativity
orderedlist
PRO
341
39k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
33k
Transcript
ॻ੶հ ݱͰ͑Δ Ruby on Rails 5 श࣮ફΨΠυ 2019.1.16 Otemachi.rb#13 দຊ
@upinetree
2
͓࣋ͪͷํ 3
• Ruby 2.5, Rails5.2 ʹରԠ • λΠτϧͷ௨ΓɺݱͰ ͦͷ··͑ΔΑ͏ͳ࣮ ફతͳࣝΛɺ͘͢ ֶΔ͜ͱΛࢦͨ͠
• ϋογϡλά #ݱRails • ͓͔͛͞·Ͱධ͍ͨͩ 4
দຊ @upinetree • גࣜձࣾ ສ༿ • डୗ։ൃͰ Rails Λͬͯ৭ʑ͓ख͍ •
Rails ܦݧ 5+ 5
6
Կ͕ʮश࣮ફʯͰ Ͳ͏ʮݱͰ͑Δʯͷ͔ʁ 7
ࢲͷपΓͰΑ͘ݟΒΕΔݱ • ଞݴޠͷγεςϜΛ Rails ʹҠߦ͢Δ • ଞݴޠܦݧ͋ΓɺRails ະܦݧϓϩάϥϚ͕ Rails ͷϓϩδΣΫ
τʹՃೖ͢Δ • Rails ͰॳظϑΣʔζͷγεςϜΛߏங͕ͨ͠ɺنͷ֦େʹ ͍ෳࡶʹͳ͖ͬͯͨ 8
ݱͰ ॳ৺ऀʗܦݧऀΛΘͣ ଟ͘ͷϓϩάϥϚ͕ Rails ͷ࣮ફతͳࣝͷ ޮతͳֶशํ๏͕ඞཁͱ͞Ε͍ͯΔ 9
͜͏ͨ͠χʔζʹ߹͏ ͦͷ··ݱͰΘΕΔΑ͏ͳ ຊΛॻ͖͔ͨͬͨ 10
Ͳ͏ͬͨΒݱͰΘΕΔͷ͔ʁ • ࣮ફతͳτϐοΫ͕͋Δ • ೖతͳτϐοΫϦϑΝϨϯε͚ͩͰͳ͘ɺݱͰΑ͋͘Δ ͕ղઆ͞Ε͍ͯΔ • ʮ͜ΕಡΜͲ͍ͯʯ͕Ͱ͖Δ • ҭͷࢀߟॻͱͯ͑͠Δ
• චऀ͕ͨͪݱͰศརʹ͑ΔʢυοάϑʔσΟϯάʣ 11
͔͠͠ Rails ΞϓϦέʔγϣϯͷ औΓѻ͏ࣝ େ 12
• Ruby ͷ͍ํɺgem ͷ͍ํ • ΦϒδΣΫτࢦ • Rails ͕ͲΜͳػೳΛ͍࣋ͬͯΔ͔ •
Web ͷΈ • DB ͷΈ • JavaScript ΛͬͨϑϩϯτΤϯυ։ൃ ͳͲͳͲ... 13
ͯ͢Λஸೡʹઆ໌͠Α͏ͱ͢Δͱ… • ࣙॻͷΑ͏ʹް͍ຊʹͳΔ • Կ͔ΒखΛ͚͍͍͔͔ͯΓͮΒ͘ͳͬͯ͠·͏ • ్தͰ࠳ંͯ͠͠·͏ • ࣮ફతͳτϐοΫʹׂ͘ࢴ໘͕֬อͰ͖ͳ͍ 14
આ໌͢ΔτϐοΫΛߜͬͯ චऀ͓ͨͪ͢͢Ίͷ༰ͱॱ൪Ͱ ࣮ࡍʹखΛಈ͔͠ͳ͕Β ֶΔΑ͏ʹ 15
ͦͷ͏͑Ͱ࣮ફతͳཁૉΛΓࠐΉ • ҰͷதͰҰͭͷΞϓϦέʔγϣϯΛҭ͍ͯͯ͘ • Α͋͘Δػೳʢ֬ೝը໘ɺݕࡧɺCSV ͳͲͳͲʣͷՃ • νʔϜ։ൃͷΓ͔ͨ • όʔδϣϯΞοϓͷํ
• ϝϯςφϯε͍͢͠ίʔυͷॻ͖ํ 16
श࣮ફ 17
ͨ͜͠ͱ 18
ʮֶͿ͜ͱʯͱʮߟ͑Δ͜ͱʯ • ͜ͷ 2 ͭΛަޓʹߦ͖དྷ͢Δ͜ͱͰɺֶशͷޮԽΛૂͬͨ • ମܥతͳࣝͷʮ͞ʯΛֶͼͳ͕Βɺͦͷࣝͷ࣮ࡍͷʮਂ ͞ʯΛܦݧ • ຊॻ͜ΕΒΛߦ͖དྷ͢ΔΑ͏ͳྲྀΕ͕ଟ͘ొ
19
ͨͱ͑ • ࠷ॳʹදਤͰશମ૾Λࣔ͠ɺͦͷޙʹ࣮ࡍʹίʔυΛॻ͘ • ࠷ॳʹબࢶΛཏ͠ɺͦͷޙʹ۩ମྫΛࣔ͢ 20
࣍ͷεςοϓͷ͕͔ΓΛ༻ҙ ʮਂ͞ʯΛग़͢தͰɺઆ໌͖͠Εͳ͍ͱ͜Ζ • τϐοΫΛߜͬͯղઆͨ͠ΒऔΓ্͛ΒΕͳ͔ͬͨ • ຊจʹೖΕΔͱྲྀΕ͕ѱ͘ͳΔ ٭Ͱิͨ͠Γ֓೦Λਤࣔͨ͠ΓΩʔϫʔυΛऔΓ্͛ͨΓ ͱɺ࣍ͷεςοϓΞοϓͷͨΊͷ͕͔ΓΛͳΔ͘༻ҙ 21
ಡऀ͕ຊॻΛ͑ͯεςοϓΞοϓ Ͱ͖Δ͜ͱΛࢦͨ͠ 22
ಡऀͷ ΨνͰݱʹدΓఴͬͨɺ࣮ફతͳ༰ΛಡΈ͍͢ߏͰ"श"ͤͯ͘͞Δɺ λΠτϧ௨Γͷຊͩͳʙͱ͍͏ײͰ͢ɻ — https://ppworks.hatenablog.jp/entry/2018/10/13/120853 ຊΛಡΜͰ͍ͯɺ͍ͭ͘ʮ͋ɺ͜ΕࣄͰΑ͋͘ΔͭͩʯΈ͍ͨͳͷ͕ॻ͔ Ε͍ͯͯɺ࣮ફతͳҹΛड͚·ͨ͠ɻ — https://sinsoku.hatenablog.com/entry/2018/11/19/083000 23
ಡऀͷ શൠతʹਤ͕ଟ༻͞Ε͍ͯͯɺಡΈ͘͢͢ΔͨΊͷ͕͋Β ΏΔͱ͜ΖʹࢄΓΊΒΕ͍ͯΔͳɺͱײ͡·ͨ͠ɻ ʢʙதུʙʣ ʮ͜Ε͔ΒݱʹೖΔͻͱ͔ΒɺݱͰͷܦݧ͋Δ͚Ͳࠓͷ ΓํͰ͍͋ͬͯΔͷ͔͔֬Ί͍ͨͻͱʯ·Ͱ෯͍ಡऀʹ͍ͨ͠ ͯΦεεϝͰ͖Δຊͩͱࢥ͍·͢ʂ — https://blog.willnet.in/entry/2018/11/04/181737 24
ͥͻ͝׆༻͍ͩ͘͞ ෯͍ݱͷํʹ͓͢͢Ί • ϓϩάϥϛϯάॳ৺ऀ • Rails ະܦݧͷϓϩάϥϛϯάܦݧऀ • Rails Λڭ͑Δཱʹ͋Δํ
• ࠷ۙ Rails Λॻ͍ͯͳͯ͘෮श͍ͨ͠ํ චऀͨͪࣄͰศརʹͬͯ·͢ ! 25