The Eric Normand Podcast

Collections in domain models

Oct 10, 2022
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

Count States to Model Combinations

  • Modeling combinations by counting possible states is key to understanding your domain model.
  • Different topping amounts and choices form alternatives and product types in data modeling.
ADVICE

Use Collections with Domain Constraints

  • Use collections like arrays to model multiple choices such as pizza toppings.
  • Wrap array operations to enforce domain rules like maximum toppings and to avoid invalid array manipulation.
INSIGHT

Equality Matters in Collections

  • Equality and order in collections impact how states are counted in domain models.
  • Modeling what makes two sets the same or different is crucial for accurate state representation.
Get the Snipd Podcast app to discover more snips from this episode
Get the app