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
Typescriptドメインモデリング
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
nikawa2161
October 24, 2024
4.5k
2
Share
Typescriptドメインモデリング
nikawa2161
October 24, 2024
More Decks by nikawa2161
See All by nikawa2161
Node.js Subpath imports
nikawa2161
0
11
Sagaパターン入門(続編)
nikawa2161
0
23
Sagaパターン入門
nikawa2161
0
30
沖縄観光とPostgreSQL排他制約の話
nikawa2161
0
24
20251209_プログラミング原則の学び
nikawa2161
0
19
自分のコードを数年ぶりに読んだら
nikawa2161
0
14
ユーザーインタビュー分析に参加して得られたことと気づき
nikawa2161
0
17
oEmbedとは?
nikawa2161
0
33
はじめまして、にかわです
nikawa2161
0
15
Featured
See All Featured
Skip the Path - Find Your Career Trail
mkilby
1
100
GitHub's CSS Performance
jonrohan
1032
470k
Design in an AI World
tapps
0
190
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
Facilitating Awesome Meetings
lara
57
6.8k
The Curious Case for Waylosing
cassininazir
0
290
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
10k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
210
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Exploring anti-patterns in Rails
aemeredith
3
310
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
500
Being A Developer After 40
akosma
91
590k
Transcript
TSドメインモデリング create by: Ô @nikawa2161 | @nikawa2161 | ✉
[email protected]
Ŝ What we do 1 柔軟性 vs 厳密性 2 柔軟性
vs 厳密性 3 型を区別して定義する
よろしくお願いします
Ŝ 型を厳密に定義 ドメインモデリングをどう⾏うか
Ŝ 紹介しないこと ドメイン駆動開発
Ŝ 柔軟性 vs 厳密性 ドメイン駆動開発
柔軟性のある型
何でも⼊れることができる
Ŝ ありえる型にしろ
それぞれありえるパターンを定義(ドメインモデリング)
怒られる
Ŝ ミスを未然に防げる ドメインモデリング素晴らしい
柔軟性のある型
ドメインモデリング
Ŝ 型を区別して定義する
区別していない
None
Ŝ Nominal Typing Like 構造的部分型
Ŝ Branded Type Michal Zalecki⽒
Brandを定義
怒られる
Ŝ まとめ 1 ユニオン 2 Branded Type
型は厳密に