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.6k
STORES へのID基盤の導入と、ユーザーアカウントの移行を振り返って
upinetree
5
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
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
297
20k
Site-Speed That Sticks
csswizardry
0
28
Designing for Performance
lara
604
68k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
42
9.2k
Git: the NoSQL Database
bkeepers
PRO
427
64k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
109
49k
Automating Front-end Workflow
addyosmani
1366
200k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
250
21k
Building Applications with DynamoDB
mza
90
6.1k
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