Ddd When To Wrap Primitives

Use when deciding whether a primitive value should become a domain-specific type or value object. Balances primitive obsession against value-object obsession using risk, invariants, behavior, and cost. Trigger for wrapping strings/ints/UUIDs, value object decisions, too many tiny types, or whether a primitive is good enough.

amadeus-dlc d94b6a0 2 files · 2.4 KB Updated

File contents

amadeus-dlc/amadeus/tree/main/amadeus/spaces/default/knowledge/amadeus-shared/software-design/ddd-when-to-wrap-primitives commit d94b6a0536

Frequently asked questions

npx skillmds@latest add amadeus-dlc/ddd-when-to-wrap-primitives