-
Recent Posts
Archives
Twitter Updates
- something like https://t.co/z2anbp1b .. ? 10 hours ago
- I need a little library where components can declare what order in which they'd like to be sorted... IOrderMe { Order GetOrder(); } 10 hours ago
- @codingthewheel @CalebJenkins ... I can't begin to fathom the complexity required 11 hours ago
- Reminder that this remains an excellent resource for people who work with software development teams: http://t.co/AGONJPmm 23 hours ago
- Taught my 2 year old about headphones today. And 311. There was much head bopping. 23 hours ago
Category Archives: Domain-Driven Design
Aggregated specifications
An example from my inversion of control talk involves a message formatter. It applies formatting rules to a string. public interface IMessageFomatter { string Format(string message); } Instead of doing all the work in the implementation of this interface, the … Continue reading
Posted in C#, Domain-Driven Design
7 Comments
More On Value Objects
A few days ago Dylan Beattie wrote a nice post about value objects. He explains the idea in a more palatable way than my attempt: If it’s not clear how to model a particular element in your model, try asking … Continue reading
There is never a collection of Value Objects
Adding to a Value Object property always adds to it, never adds another instance to it. Distinguishing Value Objects by maintaining a collection of them implies identity. It is a mistake to attempt to maintain a collection of Value Objects. … Continue reading