- Refs/
Domain Driven Design
·1 min
Table of Contents
Go To References #
- []
Videos #
-
Primitive Obsession | Code Walks 055 - Christopher Okhravi - Using
int
to represent age vsAge
for living people: the set of valid integers is greater than the set of valid ages – not all valid integers are valid ages / all valid ages are valid integers. UsingAge
allows for validation, formatting, comparisons, and makes dependencies explicit.- Are all values for this object (
int
,string
, etc.), valid values for this domain concept (name, age, etc.)? - “Good architecture is to maximize the number of decisions not made” - Uncle Bob
- Are all values for this object (