Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Technically DDD

Technically DDD

pelshoff

July 06, 2017
Tweet

More Decks by pelshoff

Other Decks in Programming

Transcript

  1. Value objects • Express a value • Business rules here

    • Immutable • Easy to unit test
  2. Entities • Have identity • More than the sum of

    their attributes • Evolve over time • If there really really really is no VO possible, then business rules here • Slightly harder to test
  3. Services • No identity or attributes (Not a “thing”) •

    Cross-concern operations • Business rules that need more data than any single entity knows • Harder to test
  4. Aggregates • Collection of objects • Interaction through root •

    If there really really really is no VO possible, then business rules here • Harder to test