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
2
4.5k
Typescriptドメインモデリング
nikawa2161
October 24, 2024
Tweet
Share
More Decks by nikawa2161
See All by nikawa2161
Node.js Subpath imports
nikawa2161
0
10
Sagaパターン入門(続編)
nikawa2161
0
20
Sagaパターン入門
nikawa2161
0
27
沖縄観光とPostgreSQL排他制約の話
nikawa2161
0
23
20251209_プログラミング原則の学び
nikawa2161
0
19
自分のコードを数年ぶりに読んだら
nikawa2161
0
13
ユーザーインタビュー分析に参加して得られたことと気づき
nikawa2161
0
13
oEmbedとは?
nikawa2161
0
27
はじめまして、にかわです
nikawa2161
0
13
Featured
See All Featured
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
110
First, design no harm
axbom
PRO
2
1.1k
Automating Front-end Workflow
addyosmani
1370
200k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.6k
Bash Introduction
62gerente
615
210k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
250
We Have a Design System, Now What?
morganepeng
55
8k
Exploring anti-patterns in Rails
aemeredith
2
290
Technical Leadership for Architectural Decision Making
baasie
3
300
Visualization
eitanlees
150
17k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
230
A Modern Web Designer's Workflow
chriscoyier
698
190k
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
型は厳密に