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
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Typescriptドメインモデリング
nikawa2161
October 24, 2024
More Decks by nikawa2161
See All by nikawa2161
Node.js Subpath imports
nikawa2161
0
21
Sagaパターン入門(続編)
nikawa2161
0
30
Sagaパターン入門
nikawa2161
0
40
沖縄観光とPostgreSQL排他制約の話
nikawa2161
0
35
20251209_プログラミング原則の学び
nikawa2161
0
25
自分のコードを数年ぶりに読んだら
nikawa2161
0
19
ユーザーインタビュー分析に参加して得られたことと気づき
nikawa2161
0
24
oEmbedとは?
nikawa2161
0
93
はじめまして、にかわです
nikawa2161
0
20
Featured
See All Featured
Design in an AI World
tapps
1
240
A Modern Web Designer's Workflow
chriscoyier
698
190k
What does AI have to do with Human Rights?
axbom
PRO
1
2.2k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
320
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.5k
Practical Orchestrator
shlominoach
191
11k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
71
40k
Documentation Writing (for coders)
carmenintech
77
5.4k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
580
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
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
型は厳密に