Monthly Archives: March 2010

Strengthening your domain: Avoiding setters

Previous posts in this series: A primer Aggregate Construction Encapsulated Collections Encapsulated Operations Double Dispatch Pattern As we start to move our domain model from an anemic existence towards one with richer behavior, we start to see the aggregate root … Continue reading 

Posted in Domain-Driven Design | 15 Comments

Strengthening your domain: The double dispatch pattern

Previous posts in this series: A primer Aggregate Construction Encapsulated Collections Encapsulated Operations It looks like there’s a pattern emerging here around encapsulation, and that’s not an accident.  Many of the code smells in the Fowler or Kerievsky refactoring books … Continue reading 

Posted in Domain-Driven Design | 46 Comments

Strengthening your domain: Encapsulating operations

Other posts in this series: A primer Aggregate Construction Encapsulated Collections In previous posts, we walked through the journey from an intentionally anemic domain model (one specifically designed with CRUD in mind), towards a design of a stronger domain model … Continue reading 

Posted in Domain-Driven Design | 10 Comments

No silver domain modeling bullets

This past week, I attended a presentation on Object-Role Modeling (with the unfortunate acronym ORM) and its application to DDD modeling".  The talk itself was interesting, but more interesting were some of the questions from the audience.  The gist of … Continue reading 

Posted in Domain-Driven Design | 2 Comments

Strengthening your domain: Encapsulated collections

Previous posts in this series: A Primer Aggregate Construction One of the common themes throughout the DDD book is that much of the nuts and bolts of structural domain-driven design is just plain good use of object-oriented programming.  This is … Continue reading 

Posted in Domain-Driven Design | 20 Comments