Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Scaffold を読む会
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
pokotyamu
June 29, 2018
Technology
170
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Scaffold を読む会
Rails way について説明した。
pokotyamu
June 29, 2018
Transcript
20 slides
scaffold ΛಡΉձ 2018.06.29 @pokotyamu
͓લ୭ͳΜʁ ͑ʔͪΌΜͱਃ͠·͢ ▸ ా ӳ༞ @pokotyamu ▸ ৽ଔ3 26ࡀ ▸
Rails Ͱ͝Γ͝Γ։ൃͯ͠·͢ ▸ e-Navigator ͷϨϏϡΞʔͱӡӦͬͯ·͢ ▸ σϚΤ SͱA+Λϩϩ͍ͯ͠ΔΧδϡΞϧ
None
None
None
scaffold ΛಡΉձ 2018.06.29 @pokotyamu
Rails Λ্ख͘ ॻͨ͘Ίʹʁ
ΕʔΔʹͬͯ͜ Rails way ʹΔ͜ͱ্ͦ͜ୡͷ伴 ▸ Rails രͰ Web ΞϓϦέʔγϣϯΛ։ൃ͢ΔͨΊͷ ϑϨʔϜϫʔΫͰ͢
▸ Web ΞϓϦέʔγϣϯΛ࡞Δ্Ͱඞཁͳ͜ͱΛԾఆͯ͠ɺ Α͠ͳʹ࡞ͬͯ͘ΕΔ ▸ ͜ͷԾఆ͕ͦ͜ Rails way (Rails ͷࢥ)
Rails way ͬͯͲΜͳͷ͕͋Δʁ Rails way ΛΖ͏ ▸ ઃఆΑΓن͕༏ઌ(Conversion Over Configuration)
▸ ಉ͜͡ͱΛ܁Γฦ͞ͳ͍(Don’t Repeat Yourself: DRY) ▸ REST(REpresentational State Transfer) ▸ ࣗಈςετ(Test Automation)
Rails way ͬͯͲΜͳͷ͕͋Δʁ Rails way ΛΖ͏ ▸ ઃఆΑΓن͕༏ઌ(Conversion Over Configuration)
▸ ಉ͜͡ͱΛ܁Γฦ͞ͳ͍(Don’t Repeat Yourself: DRY) ▸ REST(REpresentational State Transfer) ▸ ࣗಈςετ(Test Automation)
CoC ઃఆΑΓن ▸ ։ൃऀ͕·ͳ͍Α͏ʹ RoR ͷنʹଇͬͯΞϓϦΛ࡞Δ ▸ ྫɿϢʔβʔΛදݱ͢ΔϞσϧΛ User ͱͨ࣌͠
▸ DBͷςʔϒϧ໊ Users ▸ /users ͱ͍͏ URL ϢʔβʔҰཡΛද͢ ▸ Ϣʔβʔ ID: 1 Λද͢ URL /users/1
Rails way ͬͯͲΜͳͷ͕͋Δʁ Rails way ΛΖ͏ ▸ ઃఆΑΓن͕༏ઌ(Conversion Over Configuration)
▸ ಉ͜͡ͱΛ܁Γฦ͞ͳ͍(Don’t Repeat Yourself: DRY) ▸ REST(REpresentational State Transfer) ▸ ࣗಈςετ(Test Automation) ޙ΄ͲɺσϞΛࠞͥͯઆ໌͠·͢
Rails way ͬͯͲΜͳͷ͕͋Δʁ Rails way ΛΖ͏ ▸ ઃఆΑΓن͕༏ઌ(Conversion Over Configuration)
▸ ಉ͜͡ͱΛ܁Γฦ͞ͳ͍(Don’t Repeat Yourself: DRY) ▸ REST(REpresentational State Transfer) ▸ ࣗಈςετ(Test Automation)
ͦΕʁςετͳ͍ͷʁ ࣗಈςετ ▸ Rails ϓϩδΣΫτΛ࡞ͨ࣌͠ʹɺςετΛ࣮ߦ͢Δڥ ςετίʔυͷܗ͕ੜ͞ΕΔ ▸ ςετՄೳͳঢ়ଶ͕࠷ॳ͔Β༻ҙ͞Ε͍ͯΔʂʂ
ͬͱ؆୯ʹͶ Rails way ʹΔͨΊʹʁ ▸ Rails ίϚϯυΛ͏ʂʂʂʂ
༻๏༻ྔΛकͬͯͶ Rails way ʹΔͨΊʹʁ ▸ Rails ίϚϯυΛ͏ʂʂʂʂ ▸ Rails ίϚϯυΛਖ਼͘͠͏ʂʂʂʂ
▸ ͲΜͳϑΝΠϧ͕Ͱ͖Δͷʁ ▸ ͳͥ͜Μͳॻ͖ํͯ͠Δͷʁ ▸ Ͳ͏֦ு͢ΕΓଓ͚ͭͭॻ͚Δ͔ΛΕΔ
༻๏༻ྔΛकͬͯͶ Rails way ʹΔͨΊʹʁ ▸ Rails ίϚϯυΛ͏ʂʂʂʂ ▸ Rails ίϚϯυΛਖ਼͘͠͏ʂʂʂʂ
▸ ͲΜͳϑΝΠϧ͕Ͱ͖Δͷʁ ▸ ͳͥ͜Μͳॻ͖ํͯ͠Δͷʁ ▸ Ͳ͏֦ு͢ΕΓଓ͚ͭͭॻ͚Δ͔ΛΕΔ ࠇຐज़ʹ͠ͳ͍ʂʂʂ
Scaffold Λࡐʹ Rails ίϚϯυʹ͍ͭͯ ษڧ͢Δձ
·ͣछྨ Rails ίϚϯυͬͯͲΜͳͷ͕͋Δʁ ▸ ͔͜͜ΒλʔϛφϧͰݟͳ͕ΒΓ·͢ɻ ▸ ॱ൪ʹઆ໌ͨ͠ํ͕ྑ͍ͱࢥͬͯɺొஃऀΧϯϖಡΈͳ͕ ΒΔ͚Ͳڐ͍ͯͩ͘͠͞ ▸ Rails
ϓϩδΣΫτΛ࡞͢Δͱ͜Ζ͔Β࢝Ί·͢
ͨͿΜ͖͠Εͨͣ ࠓͷ·ͱΊ ▸ Rails ͷࢥΛͪΌΜͱΖ͏ ▸ ίϚϯυΛࠇຐज़ͱͯ͠Θͳ͍ ▸ ࠓͷ༰Λࢀߟʹɺ։ൃεϐʔυΛ͍͖͋͛ͯ·͠ΐ͏ʂ
More Decks by pokotyamu
See All by pokotyamu
個人のふりかえりをアップデートした話
pokotyamu
0
190
Dopagaki Driven Design
pokotyamu
0
210
エンタメ好きが見る B リーグ
pokotyamu
0
110
アジャイルの知見から新卒研修作り、そして組織作り
pokotyamu
0
300
プロダクト作りと新卒研修作り、そして組織作り
pokotyamu
1
340
アジャイル・スクラム研修2025
pokotyamu
0
840
ふりかえり研修2025
pokotyamu
1
2.3k
新卒交流ワークショップ
pokotyamu
0
1k
CTI の基礎コース受けてきた
pokotyamu
1
370
Other Decks in Technology
See All in Technology
SREのためのFinOps入門
muziyoshiz
3
1.5k
Biohub - Cell Tracking During Development 5th place solution
rist
0
150
仕様と現実の間で落とし所を探るリモートMCPの認証・認可 — Sansanの認証基盤における課題と実践
sansantech
PRO
2
290
Go初心者のクラウドエンジニアが、デプロイを通して旨味を知っていく話
ryudai
1
200
小さなエージェントから始めてみよう!実践コンテキストエンジニアリング
iwamot
PRO
0
120
自治体AIコンタクトセンター、何をどこに任せる?~Amazon Connect Customer +Amazon Bedrockの実践知~ / 20261107 Satoshi Torano
shift_evolve
PRO
1
140
「任されビリティ」で引き受けて「よしなりてぃ」に頼らず任せる / Accept tasks with "makasarebility" and hand them over without relying on "yoshinarily"
pauli
0
530
ゼロから作るWebアプリの新定番!?Amplify Gen 2 × AWS Blocksで実現する「開発速度とRDBの柔軟性のいいとこ取り」
amixedcolor
1
250
Claude Securityを使ってみた / claude-security-claude-code-meetup-nagoya
tnir
0
110
Reticulum, le réseau cypherpunk dont vous avez besoin !
rlifchitz
0
140
AI対話型分析を作成し、リリースするまでの話 / The Road to Release: Buiding AI Conversational Analytics
yappli_developers
0
110
JAWS_FESTA2026_オンプレ-AWS間プロキシサーバの移行_性能_障害対応で得た実践ノウハウ_高島一晃.pdf
tkazuaki0820
1
120
Featured
See All Featured
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
800
Producing Creativity
orderedlist
PRO
348
41k
Site-Speed That Sticks
csswizardry
13
1.6k
SEO for Brand Visibility & Recognition
aleyda
0
4.9k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
Paper Plane (Part 1)
katiecoart
PRO
3
12k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
600
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
6
920
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
310
AI: The stuff that nobody shows you
jnunemaker
PRO
12
1.3k
Git: the NoSQL Database
bkeepers
PRO
433
67k
How GitHub (no longer) Works
holman
316
150k