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
2
3.7k
STORES へのID基盤の導入と、ユーザーアカウントの移行を振り返って
upinetree
5
2.7k
バックエンド基盤チームのお仕事 / The value of the backend base team
upinetree
0
3.2k
CSSの技術的負債との向き合い方 / How to Deal with Technical Debt of CSS (ja)
upinetree
5
4.3k
How to Deal with Technical Debt of CSS
upinetree
1
550
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
Art, The Web, and Tiny UX
lynnandtonic
298
20k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
160
15k
StorybookのUI Testing Handbookを読んだ
zakiyama
28
5.4k
How STYLIGHT went responsive
nonsquared
96
5.3k
The Power of CSS Pseudo Elements
geoffreycrofte
74
5.4k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
6
500
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
2k
Agile that works and the tools we love
rasmusluckow
328
21k
Typedesign – Prime Four
hannesfritz
40
2.5k
We Have a Design System, Now What?
morganepeng
51
7.3k
Product Roadmaps are Hard
iamctodd
PRO
50
11k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
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