The Eric Normand Podcast

All about the composition lens

Jul 10, 2023
Dive into the fascinating world of composition in software design! Discover how consecutive operations can impact data types and why principles like associativity and idempotency are crucial. Relatable coffee-inspired examples make complex concepts accessible and engaging. Unpack the significance of thoughtful modeling in design choices, setting the stage for more robust software solutions.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

Lenses Reveal Hidden Context

  • Eric Normand organizes domain modeling concepts into lenses, each offering unique perspectives and questions.
  • These lenses help uncover hidden context for better software design decisions beyond rules of thumb.
INSIGHT

Composition Focuses on Operation Chains

  • Composition involves structuring multiple operations where one operation's output feeds another's input.
  • The key is understanding how these operations combine, not just individually but as sequences.
ANECDOTE

Coffee Size and Roast Example

  • Setting coffee size then roast then size again composes several operations sequentially.
  • This shows how properties like no effect from reversing size changes hold in the domain model.
Get the Snipd Podcast app to discover more snips from this episode
Get the app