← Graph

Value Object

concept 2 connections

Low-hanging fruit of DDD: replace primitive data types in domain code with small typed shells (constructor enforces legal values, meaningful to_string). Makes parameters explicit (e.g., Year instead of int), prevents illegal values, and produces readable test output. Heimeshoff recommends eliminating primitives (strings, ints, booleans with Hungarian notation) from domain code.

category
pattern
about
Value Object concept
Exercise refactors primitives into value types as the low-hanging fruit of DDD.
about
Value Object concept
Directly about value objects.

Provenance

Read by
3 extractions