Please enable JavaScript.
Coggle requires JavaScript to display documents.
DDD Coding (Value Objects (No Id, Cannot live without Entity, Imuttable,…
DDD Coding
Value Objects
No Id
Cannot live without Entity
Imuttable
Most logic in Value Objects
Model Classes
Factories not Constructors
Value types
Avoid private setters?
Identity
Should not have to write .ID EVER
Overriding equals shoudl take care of comparisons
Avoid Primitive Obsession
Use classes that reflect concepts - Compose
FullName, Address etc
you think about rules for the concepts
Error Handling
Meaningful exceptions name ...... Domain related