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
駆け出しエンジニアのコードをレビューしてみた
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
大塚真言
May 16, 2019
Programming
1.6k
4
Share
駆け出しエンジニアのコードをレビューしてみた
大塚真言
May 16, 2019
More Decks by 大塚真言
See All by 大塚真言
自社プロダクトを作ってみた.pdf
shingen29
0
310
CI/CD実践入門! GitHub ActionsでCI/CD環境を作ってみよう!
shingen29
0
140
CI/CD実践入門! GitHub ActionsでCI/CD環境を作ってみよう!
shingen29
0
320
ユースケース駆動開発で自社プロダクトを作ってみた!
shingen29
1
7.8k
MDN Web Docsから学ぶ 公式ドキュメントを読むメリット
shingen29
0
920
PHP8をざっくり解説してみる
shingen29
0
340
最近のプロジェクトを振り返ってみる
shingen29
0
420
Style Guideとstylelintを使ってHTML/CSSを綺麗に書こう!
shingen29
2
920
Stripe CLIを触ってみた!
shingen29
1
280
Other Decks in Programming
See All in Programming
最初からAWS CDKで技術検証してもいいんじゃない?
akihisaikeda
4
180
安いハードウェアでVulkan
fadis
1
860
Understanding Apache Lucene - More than just full-text search
spinscale
0
150
「接続」—パフォーマンスチューニングの最後の一手 〜点と点を結ぶ、その一瞬のために〜
kentaroutakeda
4
2.3k
Reactive ❤️ Loom: A Forbidden Love Story
franz1981
2
210
PHPのバージョンアップ時にも役立ったAST(2026年版)
matsuo_atsushi
0
270
Codexに役割を持たせる 他のAIエージェントと組み合わせる実務Tips
o8n
4
1.4k
一度始めたらやめられない開発効率向上術 / Findy あなたのdotfilesを教えて!
k0kubun
3
2.6k
それはエンジニアリングの糧である:AI開発のためにAIのOSSを開発する現場より / It serves as fuel for engineering: insights from the field of developing open-source AI for AI development.
nrslib
1
740
おれのAgentic Coding 2026/03
tsukasagr
1
120
AIコードレビューの導入・運用と AI駆動開発における「AI4QA」の取り組みについて
hagevvashi
0
580
Redox OS でのネームスペース管理と chroot の実現
isanethen
0
490
Featured
See All Featured
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
[SF Ruby Conf 2025] Rails X
palkan
2
880
How to Ace a Technical Interview
jacobian
281
24k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
930
The SEO Collaboration Effect
kristinabergwall1
0
410
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
96
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
500
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
330
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
10k
Google's AI Overviews - The New Search
badams
0
950
Side Projects
sachag
455
43k
Transcript
ۦ͚ग़͠ΤϯδχΞͷίʔυΛ ϨϏϡʔͯ͠Έͨ 2019/05/16 Laravel Meetup Miyazaki #1 େ௩ਅݴ
ຊͷྲྀΕ • ࣗݾհ • ۦ͚ग़͠ΤϯδχΞͱ • ݚम༰ʹ͍ͭͯ • ϨϏϡʔͯ͠Έͨ
ࣗݾհ
ࣗݾհ ɾ໊લɹɿେ௩ ਅݴʢ͠Μ͛Μʣ ɾTwitterɿ@mametra ɾॴଐɹɿ߹ಉձࣾϊϚυϦ ද ɾεΩϧɿLaravel, Vue.js, Firebase ɾझຯɹɿΩϟϯϓ,
ϑΣε ɾࣄɹɿLaravelͰͷWebγεςϜ։ൃ HTML5ϋΠϒϦουΞϓϦ։ൃ
None
ۦ͚ग़͠ΤϯδχΞͱ
ۦ͚ग़͠ΤϯδχΞͱ • ϓϩάϥϛϯάΛษڧ࢝͠Ίͯ1ະຬ • ৽ଔ࣮͘͠ܦݧ͕ઙ͍ • TwitterͰ XXX@ۦ͚ग़͠ΤϯδχΞ ͱ໊ͬ ͍ͯΔ
ݚम༰ʹ͍ͭͯ
Πϯλʔϯੜͷհ • ٶ͘Μ • ٶ࡚ެཱେֶ4 • ϓϩάϥϛϯάྺ1 • Laravel,PHPະܦݧ •
ٶຊ͘Μ • ٶ࡚େֶ2 • ϓϩάϥϛϯάྺ1 • Laravel,PHPະܦݧ
ݚम༰ • Նࠒ·Ͱʹ࣮ՄೳͳεΩϧΛ͚ͭΔ • Laravel੨ຊɺެࣜνϡʔτϦΞϧΛྃ • 3݄͔Β࣮ફԋशΛ։࢝
࣮ફԋश • ITษڧձαʔϏεΛύΫΔࢀߟ • ཁ݅ఆٛʙઃܭʙ࣮ʙςετ • ୲ػೳΛׂΓৼΓɺϓϧϦΫϕʔεͰ࣮
None
None
None
None
ϨϏϡʔͯ͠Έͨ
ϨϏϡʔͱ • ιϑτΣΞ࣭ͷ্͓Αͼଐਓੑͷഉআ • εΩϧͷ্ٴͼφϨοδͷڞ༗ • ϨϏϡʔίʔυʹରͯ͠ߦ͏
ϨϏϡʔର • EventController • લఏ݅ • ϧʔςΟϯάఆٛࡁΈ • ModelϦϨʔγϣϯͷΈ ΞΫγϣϯ
ػೳ JOEFY Ұཡදࣔ DSFBUF ৽ن࡞ TUPSF ొ TIPX ৄࡉදࣔ FEJU ฤू VQEBUF ߋ৽ EFMFUF আ
None
None
None
None
ϨϏϡʔํ • 200ߦͷ Fat Controller ղফΛ࠷༏ઌ • RequestɺServiceΛՃ • Fat
Model ΛͭΉΔ
ୈ1
None
ୈ1 • FormRequestΫϥεͷಋೖ • όϦσʔγϣϯͱલॲཧʢՃʣΛ࣮ • store, updateϝιουͷҾʹ FormRequestΫϥεΛλΠϓώϯτͰࢦఆ •
ϝιου͕ݺͼग़͞ΕΔલʹόϦσʔγϣϯ
None
None
200 → 150
ୈ2
None
ୈ2 • ΞΫηαͱappendsͷ༻ • appendsΛ͏͜ͱͰɺςʔϒϧʹͳ͍ΧϥϜ ΛEventΦϒδΣΫτͷϓϩύςΟʹՃͰ͖Δ • ΞΫηαʹऔΓ͏ΔΛఆٛ͢Δ • EventΦϒδΣΫτ͔ΒՃͨ͠ϓϩύςΟΛऔ
ಘͰ͖Δ
None
None
None
150 → 130
ୈ3
None
ୈ3 • ServiceΫϥεͷಋೖ • ϏδωεϩδοΫControllerʹॻ͔ͳ͍ • EventServiceΫϥείϯετϥΫλʔΠϯ δΣΫγϣϯʹΑΓEventControllerͰΞΫ ηεՄೳʹͳΔ
None
None
130 → 85
None
None
·ͱΊ
·ͱΊ • Fat ControllerݏΘΕΔͷͰεϦϜΛҙࣝ͢Δ • RequestServiceͳͲಛఆͷΛ࣋ͬͨ ΫϥεʹΘ͚Δͱશମͱͯ͠ͷݟ௨্͕͢͠Δ • ServiceͱModelͷؒʹRepositoryΛೖΕ ΔϨΠΞʔυΞʔΩςΫνϟ͋ͬͨΓɺ
Laravelࣗ༝͕ߴ͘ɺۦ͚ग़͠ΤϯδχΞΛ ໎ΘͤΔ͜ͱ͕ଟ͍
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ