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.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.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
A Modern Web Designer's Workflow
chriscoyier
693
190k
Scaling GitHub
holman
458
140k
Optimising Largest Contentful Paint
csswizardry
33
3k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
247
1.3M
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
Music & Morning Musume
bryan
46
6.2k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Building Your Own Lightsaber
phodgson
103
6.1k
Mobile First: as difficult as doing things right
swwweet
222
9k
Agile that works and the tools we love
rasmusluckow
328
21k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
1.2k
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