I would consider using a NullObject (or SpecialCase<http://patternshare.org/default.aspx/Home.MF.SpecialCase>, really). I have CustomerNotFound classes that...
WARNING: Long Email Use Case: On my website clients manage promotional data about their products. One of my services is I bundle up this data and present it as...
Warning: long reply follows. I've done this recently, not so much from a DDD perspective but driven by performance constraints. The goal was online translation...
Hi Dru How about a bit of 'Test First?' I assume that you have some working software. I'd try to provide some tests that confirm the existing user interactions...
While not super on point, it does however shed a ton of light into a different but related area. THANKS!!!! If what I was trying to model was the process of...
I totally hear you on the TDD, I am working towards this right now. One of my hurdles is getting my MicroKernel (Castle) set up so that I can use the ...
I thought that in your scenario you notify customers of translations that are out of date. So apparently they are involved in the translation process. Hence my...
I thought I'd do try some posts to see if I can get some help in trying to refactor a prototype end user query tool application along the lines of DDD. This...
I am thinking that lookup objects that are structures(Value classes) could have factory methods hangning off of the class as static methods. So if you had a...
Works but requires a code change every time a new lookup value is introduced. May be OK for straightforward lookups such as status but quickly goes off-track...
Because enums require code recompile when the domain is extended. Enums work fine for 'technical' lookups such as a process status or some condition in the...
I never really thought of having to recompile as being an issue, but I guess I can kind of see it. Hmmmm, Bert, how do you handle look up values. Right now I...
Hi. Dru, your last message come to mind me one of our frequent problem. Lets suppose we have an Order entity and it has an OrderPriority value object....
Zsolt, That is exactly my problem with lookups. I have yet to find a satisfactory answer to it either. dru _____ From: domaindrivendesign@yahoogroups.com ...
Yeah, but an enum is good enough until the client starts asking for new values. I usually start with an Enum then refactor to a full blown properties or...
One of the design decisions that I'm currently "struggling" with is how best to design the integration between my services layer and my domain layer. My ...
Does this help? What if the 'values' here were not separated from the behaviour of the domain object? Could the domain object itself reveal suitable 'values'...
Steve, I would suggest more coarse grained messages than CRUD on domain entities. For instance, adding a new customer might be too high-resolution. Consider ...
... guess I can kind of see it. ... in one repository. ... closest to logically. Warning - long reply follows. I've been using the following approach recently:...
Hmm i like the concept of of the object controlling the life cycle. Then you could have something like object.ElevateStatus or something. Hmm.... _____ From:...
I guess it depends on the 'distance' between the users and the developers. In the company I work for, the client is usually in New York or London or Singapore,...
Absolutely agree. The sample I provided probably isn't very realistic. The "problem" that I'm looking at is still relevant. A part of the "Open Account ...
Another good argument against off-shoring. You save on per hour costs, but the lack of face-to-face communication forces you to build in unnecessary ...
The first frame work - DMT(Domain Model Transportation Framework) which is under Sourceforge.net project Domain Model Deistribution Frameworks has been...
... First of all as you mentioned, interface is the contact, and you don't want to leak internal impl into the interface. Also keep in mind that public...
Thanks for the thoughts Zhiyi! I've definitely been leaning this way as well. I definitely don't want to leak internal implementation details into my service...