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
What is "Entity" in DDD?
Search
kkeeth
March 10, 2020
Technology
0
150
What is "Entity" in DDD?
kkeeth
March 10, 2020
Tweet
Share
More Decks by kkeeth
See All by kkeeth
The history of Javascript frameworks: changes in front-end design philosophy
clown0082
2
99
Visually experience the beauty of mathematics with p5.js
clown0082
1
2.7k
Rediscover the joy of coding with Creative Coding
clown0082
0
1.3k
全員が意思決定する会社で開発者体験や生産性を見る大変さについて
clown0082
0
550
JavaScript × Mathematics go to Digital Art
clown0082
1
310
In-house study group at YUMEMI
clown0082
0
160
Playing Ionic Logo by p5.js
clown0082
0
210
Skills that employers recommend students to acquire
clown0082
1
260
Walking through the source code of an OSS Library(ESLint))
clown0082
0
350
Other Decks in Technology
See All in Technology
New Relicを活用したSREの最初のステップ / NRUG OKINAWA VOL.3
isaoshimizu
2
600
Oracle Cloud Infrastructureデータベース・クラウド:各バージョンのサポート期間
oracle4engineer
PRO
28
12k
【Startup CTO of the Year 2024 / Audience Award】アセンド取締役CTO 丹羽健
niwatakeru
0
990
Platform Engineering for Software Developers and Architects
syntasso
1
520
[FOSS4G 2024 Japan LT] LLMを使ってGISデータ解析を自動化したい!
nssv
1
210
Lambdaと地方とコミュニティ
miu_crescent
2
370
スクラム成熟度セルフチェックツールを作って得た学びとその活用法
coincheck_recruit
1
140
Why does continuous profiling matter to developers? #appdevelopercon
salaboy
0
190
エンジニア人生の拡張性を高める 「探索型キャリア設計」の提案
tenshoku_draft
1
120
OCI 運用監視サービス 概要
oracle4engineer
PRO
0
4.8k
障害対応指揮の意思決定と情報共有における価値観 / Waroom Meetup #2
arthur1
5
470
なぜ今 AI Agent なのか _近藤憲児
kenjikondobai
4
1.4k
Featured
See All Featured
Product Roadmaps are Hard
iamctodd
PRO
49
11k
Raft: Consensus for Rubyists
vanstee
136
6.6k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
The Art of Programming - Codeland 2020
erikaheidi
52
13k
Happy Clients
brianwarren
98
6.7k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
8.2k
Keith and Marios Guide to Fast Websites
keithpitt
409
22k
Building Your Own Lightsaber
phodgson
103
6.1k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
16
2.1k
How to train your dragon (web standard)
notwaldorf
88
5.7k
Writing Fast Ruby
sferik
627
61k
Transcript
What is “Entity” in DDD? k-kuwahara @kuwahara_jsri @clown0082 Mar 10,
2020 Active Book Dialogue @Yumemi
const my_info = { Workplace: ‘Yumemi Inc’, Position1: ‘Servant Leader
of FET’, Position2: ‘CEO(secondary)’, Community: ‘Riot.js, Ionic, DIST’, PokemonGO: ‘TL40’ } About me
npm/~kkeeth
github.com/riot
definition of “Entity”
embody Domain Model Domain Object definitin of “Entity”
embody Domain Model definitin of “Entity” Domain Object But, there
are 2 objects. So, “Value Object”, “Entity”
What is the difference between “Value Object” and “Entity”?
the difference Value Object Entity diff attributes/variables identity property immutability
valiability change exchange/substitution behavior
Value Object
Value Object Name: John Age: 32 Gender: Male Name: Emily
Age: 27 Gender: Female
Value Object Name: John Age: 32 Gender: Male Name: John
Age: 32 Gender: Male
Entity
Entity Name: John Age: 32 Gender: Male Name: Emily Age:
27 Gender: Female
Entity Name: John Age: 32 Gender: Male Name: John Age:
32 Gender: Male
How do “Entity” identify each other?
Entity ID: 12345 Name: John Age: 32 Gender: Male ID:
98765 Name: John Age: 32 Gender: Male
Entity ID: 12345 Name: John Age: 32 Gender: Male ID:
98765 Name: John Age: 32 Gender: Male identity identity ID: 12345 ID: 98765
Merits of “Entity”
merits of “Entity” Code is more documentable Make changes in
our domain easier to communicate to your code
merits of “Entity”
embody merits of “Entity”
Let’s join DDD!!
None