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
RailsでViewModel導入に 挫折しかけてる話@表参道.rb #44
Search
YABOO JAPAN
April 04, 2019
Technology
1
910
RailsでViewModel導入に 挫折しかけてる話@表参道.rb #44
YABOO JAPAN
April 04, 2019
Tweet
Share
More Decks by YABOO JAPAN
See All by YABOO JAPAN
RubyKaigiでもらった熱量がOSSに変換された話@AFTER RubyKaigi 2019
yaboojp
0
2.5k
サービス開発する平成の君に 昭和の僕から伝えたい7つのこと@平成.rb #2
yaboojp
0
790
RailsのCacheつかってますか?@表参道.rb #44
yaboojp
0
760
夏休みの宿題 8/31にやらない話 @Otemachi.rb #14
yaboojp
0
340
ぼくが考える最強のApplicationModel @表参道.rb #43
yaboojp
0
670
大掃除 on Rails @Otemachi.rb #12
yaboojp
1
60
使わない機能の倒し方 @s-dev talks 〜サービス開発勉強会〜 大忘年LT大会
yaboojp
0
100
Other Decks in Technology
See All in Technology
Amplify Gen2から知るAWS CDK Toolkit Libraryの使い方/How to use the AWS CDK Toolkit Library as known from Amplify Gen2
fossamagna
0
150
microCMSではじめるAIライティング
himaratsu
0
110
対話型音声AIアプリケーションの信頼性向上の取り組み
ivry_presentationmaterials
1
600
Delta airlines Customer®️ USA Contact Numbers: Complete 2025 Support Guide
deltahelp
0
1.1k
全部AI、全員Cursor、ドキュメント駆動開発 〜DevinやGeminiも添えて〜
rinchsan
0
360
DatabricksにOLTPデータベース『Lakebase』がやってきた!
inoutk
0
150
サイバーエージェントグループのSRE10年の歩みとAI時代の生存戦略
shotatsuge
4
710
VGGT: Visual Geometry Grounded Transformer
peisuke
1
550
Reach American Airlines®️ Instantly: 19 Calling Methods for Fast Support in the USA
flyamerican
1
180
Enhancing SaaS Product Reliability and Release Velocity through Optimized Testing Approach
ropqa
1
250
United Airlines Customer Service– Call 1-833-341-3142 Now!
airhelp
0
170
LLM時代の検索
shibuiwilliam
2
620
Featured
See All Featured
Adopting Sorbet at Scale
ufuk
77
9.5k
Measuring & Analyzing Core Web Vitals
bluesmoon
7
510
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
50
5.5k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
20
1.3k
Building Adaptive Systems
keathley
43
2.7k
Thoughts on Productivity
jonyablonski
69
4.7k
The World Runs on Bad Software
bkeepers
PRO
69
11k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
35
2.4k
Balancing Empowerment & Direction
lara
1
440
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
Faster Mobile Websites
deanohume
307
31k
Transcript
RailsͰViewModelಋೖʹ ࠳ં͔͚ͯ͠Δ @yaboojp omotesando.rb #45 2019/4/4
Self • Identifer • େ༅ Ӭ / Ϡϒ / @yaboojp
• Job: • 22Inc. ۀ -> Co-Founder & CTO • NTTdata -> ৽ଔͰΤϯδχΞ • Ed • େֶ -> ࣗવݴޠղੳͷݚڀ • ֶੜϕϯνϟʔ -> ҬݶఆϑϦϚαʔϏεʢPHPʣ • Location • ژ to ౦ژ • Favorites • Իָ, όΠΫ, ΫϥϑτϏʔϧ, JALϚΠϧ
None
None
Έͳ͞ΜͷRoRͬͯ ViewModel͋Γ·͢ʁ
Ҿ༻ɿ https://techracho.bpsinc.jp/hachi8833/2013_11_19/14738
Ҿ༻ɿ https://techracho.bpsinc.jp/hachi8833/2013_11_19/14738
MVVMύλʔϯ Frontend εϚϗΞϓϦͱ͔+4ϑϨʔϜϫʔ Ϋͷ։ൃͩͱ͓ೃછΈ Ҿ༻ɿ https://qiita.com/s_emoto/items/b000a5c076f3d6076972
RoRʹ͓͚ΔViewModelͬͯʁ • DecoratorͱݺΕΔ͜ͱ͕ଟ͍(ؾ͕͢Δ) • Gemͩͱactive_decorator, draper ͳͲ
͜͏͍͏ఆٛ͋ΔΒ͍͠ Ҿ༻: https://tech.kitchhike.com/entry/2018/02/28/221159
͕ࣗߟ͑ͯͨͷʹ͍ۙ Ҿ༻: https://qiita.com/shunhikita/items/7fdb5d95c883e38c63fc
ͱΓ͋͑ͣ ͬͯΈΑ͏
·͊ɺݟ͍ͯͩ͘͞Α
͜͏͍͏ը໘ΛϦϑΝΫλ͔ͨͬͨ͠
৴ཤྺ ৴༧ ࣗಈઃఆ Լॻ͖த Ωϟϯϖʔϯͷ৴Ұཡϖʔδ
$POUSPMMFS ɾେྔͷΠϯελϯεϝ ιουͷੜ ɾ"3ͷΞΫηε #FGPSF
"GUFS $POUSPMMFS ɾεοΩϦͨ͠ 7JFX.PEFM ɾ̍ϝιουʹ٧ΊࠐΈ ɾಛఆͷ7JFXʹґଘ͠ ͗͢
"GUFS $POUSPMMFS ɾಉ͘͡εοΩϦ 7JFX.PEFM ɾཉ͍͠ใຖʹϝιο υ͚ͨ ɾϢʔεέʔεʹ
Μʔ
ฐࣾΞϓϦΤϯδχΞʹฉ͍ͨ • ʮΦϨͷͬͯΔViewModelͪΌ͏ʯ • ʮ͜ΕBaseControllerͰ͑͑ΜͪΌ͏Μʯ • ...ίϨδϟφΠ
> git branch -d feature/add-view-model
ઃܭڧ͍ਓ͍·ͤΜ͔ʁ