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
nikawa2161
October 24, 2024
2
4.5k
Typescriptドメインモデリング
nikawa2161
October 24, 2024
Tweet
Share
More Decks by nikawa2161
See All by nikawa2161
コンパイルの違い
nikawa2161
0
2
error-marp.pdf
nikawa2161
0
5
difit
nikawa2161
0
26
フロントのキャッシュ
nikawa2161
0
6
Dia
nikawa2161
0
3
LLMを拡張機能に
nikawa2161
0
10
経営戦略(人生)
nikawa2161
0
13
コンポーネントとレンダー
nikawa2161
0
5
cursor
nikawa2161
0
7
Featured
See All Featured
What’s in a name? Adding method to the madness
productmarketing
PRO
23
3.7k
Building Better People: How to give real-time feedback that sticks.
wjessup
368
20k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
45
2.5k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.1k
Fireside Chat
paigeccino
40
3.7k
RailsConf 2023
tenderlove
30
1.2k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
960
The Straight Up "How To Draw Better" Workshop
denniskardys
237
140k
It's Worth the Effort
3n
187
28k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
9
580
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
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
型は厳密に