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.4k
STORES へのID基盤の導入と、ユーザーアカウントの移行を振り返って
upinetree
4
2.6k
バックエンド基盤チームのお仕事 / The value of the backend base team
upinetree
0
3.1k
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
810
Hello React
upinetree
4
260
history of nicorepo gem and me
upinetree
0
140
Visualize team communications on github
upinetree
4
1.1k
Featured
See All Featured
Typedesign – Prime Four
hannesfritz
38
2.3k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.4k
Rails Girls Zürich Keynote
gr2m
93
13k
Build The Right Thing And Hit Your Dates
maggiecrowley
29
2.2k
The Art of Programming - Codeland 2020
erikaheidi
48
13k
The Language of Interfaces
destraynor
153
23k
The Brand Is Dead. Long Live the Brand.
mthomps
53
37k
GraphQLとの向き合い方2022年版
quramy
43
13k
Code Review Best Practice
trishagee
62
16k
Building a Modern Day E-commerce SEO Strategy
aleyda
35
6.8k
What's new in Ruby 2.0
geeforr
340
31k
Optimising Largest Contentful Paint
csswizardry
28
2.7k
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