$30 off During Our Annual Pro Sale. View Details »
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
1
マッチング
nikawa2161
0
3
自己肯定感
nikawa2161
0
3
問題・解決空間
nikawa2161
0
2
コンパイルの違い
nikawa2161
0
3
error-marp.pdf
nikawa2161
0
5
difit
nikawa2161
0
49
フロントのキャッシュ
nikawa2161
0
6
Dia
nikawa2161
0
3
Featured
See All Featured
Optimizing for Happiness
mojombo
379
70k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.6k
Building Adaptive Systems
keathley
44
2.9k
Designing for Performance
lara
610
69k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
10
700
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.8k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.3k
Faster Mobile Websites
deanohume
310
31k
Producing Creativity
orderedlist
PRO
348
40k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
What's in a price? How to price your products and services
michaelherold
246
12k
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
型は厳密に