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
「モデル」を考える / Think about "model"
Search
mather
July 12, 2019
Technology
410
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
「モデル」を考える / Think about "model"
mather
July 12, 2019
Transcript
18 slides
ʮϞσϧʯΛߟ͑Δ 2019-07-12 ܂ാӳࢿ
ࣗݾհ • ͘Θ͍͚ͨ͑͢(36) • גࣜձࣾΞϥλφ • όοΫΤϯυͱઃܭ • ؔܕݴޠ͕͖Ͱ͢ •
झຯɿμΠϏϯάɺυϩʔϯɺ… ʘ͜ͷΞΠίϯͰ͓ͳ͡Έʗ
ʣ༰͕நతͰ͢
Ϟσϧ
ϑϨʔϜϫʔΫͷϞσϧ ϏδωεϞσϧɾυϝΠϯϞσϧ ViewModel
େࣄͳͷ
Ͳ͏͍͏ঢ়ଶ͔ΠϝʔδͰ͖Δ͜ͱ
ΦϒδΣΫτࢦͷϑϨʔϜϫʔΫ • DBઃܭʹภΓ͕ͪ • ϏδωεʹඞཁͳʮϞσϧʯΛࣗͨͪͰઃܭͨ͠΄͏͕อक ੑ͕ߴ͘ͳΔ • DDDʢυϝΠϯۦಈઃܭʣͳͲͷઃܭख๏͕͋Δ
ϏδωεΛத৺ʹͯ͠ߟ͑Δ
Ұํ ViewModel ͳͲ…
ঢ়ଶΛத৺ʹͯ͠ߟ͑Δ
Vue.jsͷ߹ • data(ঢ়ଶͷͯ͢) • methods (ঢ়ଶͷมߋखஈ) • computed (ঢ়ଶ͔Βಋग़͞ΕΔ) •
dataΛHTMLͰදݱ͢Δؔܕʹ͍ۙΞϓϩʔν
ؔܕͷΞϓϩʔν ঢ়ଶཧʹ͍͍ͯΔ
ͨͩ͠ɺ͖ͬͪΓΔʹ ʢ७ਮؔܕͰͳ͍ݶΓʣ ෆมɾࢀরಁ໌ͳͲΛҙࣝ͢Δඞཁ͕͋Δ
·ͱΊ
ϞσϧΛղ͢ΔΞϓϩʔνΛ ͪΌΜͱΔɾҙࣝ͢Δ
͜ΕҰछͷʮϞσϧʯ
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ ࣍ճʮμΠϏϯάʹֶͿϦεΫཧʯ
More Decks by mather
See All by mather
数学勉強会へのいざない
mather
0
87
SolidjsでLeacTion!を作り直しました / Rebuilt LeacTion! in Solid.js
mather
0
380
Webフレームワークの功罪 / Advantages and considerable point of Web Frameworks
mather
0
520
LeacTion!のアップデートとプチ勉強会へのいざない / Updates of LeacTion and Petit Meetup
mather
0
570
LeacTion!について / About LeacTion!
mather
0
380
Rubyでワンライナー / One-liner on Ruby
mather
0
520
認知と思考パターン / Cognition and Pattern
mather
1
340
Shall we make a speech?
mather
0
290
Elmでライフゲーム / LifeGame in Elm
mather
1
1.1k
Other Decks in Technology
See All in Technology
Fukurou Labo_Engineer_Deck
fukuroulabo
0
120
Webメール開発を大幅に変えたJMAPというゲームチェンジャー
tascript
9
5.8k
VTuberになってみた話
yoshimura_datam
0
120
競馬予想をAIでやってみた話
yoshimura_datam
0
150
「正しいデータ」の定義をAI エージェントとつくるGoogleADKによるデータ品質定義の実践
takaha4k
0
150
Go でトランザクション、どう書いてますか?
knwoop
2
640
Metadata - Section 4 : MODS (Metadata Object Description Schema )
mohab1
0
170
Ignite 2026 Security
babaneko
0
110
生成AIによる情報システムへのインパクト (2026年11月版)
taka_aki
0
130
設計手法を「道具」として使いこなすために
a_suenami
7
1.8k
AWS re:Invent 2026 FSI Pre-Event Networking Night
junjikoide
0
330
Kiro Crew の Conductor mode: 1 つのチャットに渡したゴールを、コンダクターがワーカーに分けて任せる
inariku
PRO
1
140
Featured
See All Featured
Game over? The fight for quality and originality in the time of robots
wayneb77
1
340
sira's awesome portfolio website redesign presentation
elsirapls
0
530
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.2k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
850
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.6k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
500
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
620
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
Writing Fast Ruby
sferik
630
63k
Rails Girls Zürich Keynote
gr2m
96
14k
Exploring anti-patterns in Rails
aemeredith
4
590
Site-Speed That Sticks
csswizardry
13
1.6k