Search the web
Sign In
New User? Sign Up
domaindrivendesign · Domain-Driven Design
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 8161 - 8190 of 16070   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
8161
sorry for the duplicate(ish) posting - there was quite a latency which tripped me up. Dan...
Dan Haywood
danh024680
Offline Send Email
Sep 1, 2008
8:18 am
8162
Hey Greg/Dan/Aaron, I sincerely appreciate your responses. Greg: Yes, your concepts are perfectly correct, I do not have a single method called...
ashley.fernandes@...
callingashley
Offline Send Email
Sep 1, 2008
1:38 pm
8163
Hi All, My Two Cents on SOA, having implemented Web Services, SOA : Design Principle WEB Services : an Implementation of the SOA Design Principle. I correlate...
ashley.fernandes@...
callingashley
Offline Send Email
Sep 1, 2008
2:08 pm
8164
Hello Greg, sorry for my late reply - I was on vacation ;) ... I like this approch. Can you give a small example how you would implement this? Thanks Matthias...
matthias.kampen
Offline Send Email
Sep 1, 2008
4:24 pm
8165
... The UnitOfWork pattern is implemented in Qi4j(.org), like so: // Create UoW UnitOfWork uow = uowFactory.newUnitOfWork(); // Get references to some Entities...
Rickard Öberg
rickardoberg
Offline Send Email
Sep 2, 2008
3:15 am
8166
As Jason observed, logging is not meant to be used by the end user - that then is the indicator it is not to be considered part of a domain, it's just a...
berthooyman
Offline Send Email
Sep 2, 2008
7:00 am
8167
... domain ... In this case the methods you invoke could still lead to invalid object states as you change the entity directly. Is there an example of Greg ...
matthias.kampen
Offline Send Email
Sep 2, 2008
7:18 am
8168
... Yes, that's the point, that within a UoW the state may be invalid, but at the end of a UoW the state is always validated. /Rickard...
Rickard Öberg
rickardoberg
Offline Send Email
Sep 2, 2008
7:40 am
8169
I use a unit of work in terms of messaging. I represent all incoming operations as commands. These are optionally put into a unit of work. Since everything is...
Greg Young
gumboismadeo...
Offline Send Email
Sep 2, 2008
5:02 pm
8170
Based on the feedback I'm getting it seems as if the general interpredation is that SOA and DDD is a nice match that can very well coexists and enricht each...
trondeirikkolloen
trondeirikko...
Offline Send Email
Sep 3, 2008
8:04 am
8171
I think that requring a entity to always be in a valid state puts huge amount of unessesarly restriction for how you can work with the entity. Take the...
trondeirikkolloen
trondeirikko...
Offline Send Email
Sep 3, 2008
8:24 am
8172
But the problem in your example arises because you have individual setters for these dependent properties. Instead of having setters for everything you could...
Alasdair Gilmour
alasdair_gil...
Offline Send Email
Sep 3, 2008
8:47 am
8173
... setters ... everything you ... inconsistent ... Other than the fact that you might be using an ORM package like hibernate, or jpa, right? They require...
jameswcarman
Offline Send Email
Sep 3, 2008
10:24 am
8174
Correct. Moreover, if direct field access is not appropriate, Hibernate lets you declare setters for the properties as *private* methods - Hibernate can still...
Alasdair Gilmour
alasdair_gil...
Offline Send Email
Sep 3, 2008
11:01 am
8175
... Hibernate ... Right, I do that with my setId() method. I don't want anyone else calling it (actually I make it protected for unit testing purposes)....
jameswcarman
Offline Send Email
Sep 3, 2008
11:03 am
8176
Incidentally, you can also code a public setID() method that will only allow the ID to be set once, so only your Data Access Layer can call it when...
moffdub
Offline Send Email
Sep 3, 2008
11:59 am
8177
Hi, I am developing some combination of DDD and SOA right now. I cannot share any code, but I can share a description on how to do. I am writing code in ...
Tomas Karlsson
marcellus874
Offline Send Email
Sep 3, 2008
6:52 pm
8178
Hello, This is not so much a DDD post, but an OO design post, and more specifically, a code readability / Tell Don't Ask post. I give you advance warning in...
moffdub
Offline Send Email
Sep 3, 2008
8:46 pm
8179
A method of alleviating the pain of the many parameters to the constructor is to introduce a fluent builder. The builder explicitly has the responsibility of...
Greg Young
gumboismadeo...
Offline Send Email
Sep 3, 2008
9:06 pm
8180
Since it looks like you're a Java user, I'd say go with a fluent builder....
Chris Martin
cmartinbot
Offline Send Email
Sep 4, 2008
1:38 am
8181
Yep, with the fluent builder approach your example would become something like Pen redPen = Pen.withCapacity( 700 ml ) .ofLength( 8 inches ) .colored(...
Alasdair Gilmour
alasdair_gil...
Offline Send Email
Sep 4, 2008
9:09 am
8182
A fluent builder indeed. Now let's suppose I let every pen be named, and the name can be changed at any time during the lifecycle. I could still use the fluent...
moffdub
Offline Send Email
Sep 4, 2008
12:21 pm
8183
... Sure: Pen.like(bluePen).withName("Red Pen").andColor(Color.RED); - Geoffrey -- Geoffrey Wiseman...
Geoffrey Wiseman
diathesis242
Offline Send Email
Sep 4, 2008
3:39 pm
8184
That will certainly work, though at its heart redPen.changer().changeNameTo("foo").changeLengthTo(20); is little better than redPen.changeNameTo("foo"); ...
moffdub
Offline Send Email
Sep 4, 2008
4:33 pm
8185
Keep the pen immutable if possible and offer a method that returns a new pen with the same settings and a different name. Pen p =...
Greg Young
gumboismadeo...
Offline Send Email
Sep 4, 2008
4:56 pm
8186
If Pen is the actual class that you're working with, it's screaming for a Factory. Otherwise, I agree with Greg....
Chris Martin
cmartinbot
Offline Send Email
Sep 4, 2008
6:33 pm
8187
Have you read Martin Fowler's work on Method Chaining? I can't find his original bliki article at the moment, but he's got most of the material in his upcoming...
John Roth
jhrothjr
Offline Send Email
Sep 4, 2008
10:19 pm
8188
Hi, I'm trying to design a larger solution with DDD patterns. I plan to put repository interfaces inside the domain, because I need my entities to access the...
rafalb85
Offline Send Email
Sep 5, 2008
12:24 am
8189
In our domain driven design, we allow clients to consume a service that includes a "Save Step" method (public Step SaveStep(Step userStep). This works great...
daniel.chawner
Offline Send Email
Sep 5, 2008
12:25 am
8190
I use Spring and its AspectJ aspects for this situation (if you're coding in Java). The aspect is bound to the Spring context, so the logic that it injects...
jameswcarman
Offline Send Email
Sep 5, 2008
1:25 am
Messages 8161 - 8190 of 16070   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help