

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.
AI Snips
Chapters
Transcript
Episode notes
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.
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.
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.