Hi Nuno, Yes, make sense, thanks!. So as a summary for your OO modelling technique is more or less: 1) Determine the event/transaction for the use case 2)...
Its good start. ... Not necessarily. Only when a person role is relevant for the transaction in terms of business rules. A lot of roles are of things, places...
Hi Nuno, ... Since OO modeling is about observing real world, then why the Photo is the responsable for moving itself from one album to another, instead of the...
Hi Sebastian, ... That is a very interesting question, that many have stumbled on and had opened many fierce debates (some of them philosophical) between soul...
Sorry sebastian, I wrote the previous post without reading it over. Full of errors. Hopefully this one is easier to read so please ignore the previous one....
... And the reason is that while arguing whether to go through door one or door two, the real answer is to go through door three. Problem is, noone knew nr...
Richard, where would you place the "move" method? A service outside all of the objects? ... This style reminds me of the "command" pattern in a message bus:...
... No, on the context object itself. The context is a instantiate-populate-invoke-discard type of object, so not a service. But there are many ways to...
Hi, Some context regarding my issue : Domain Objects : TaxStructure : Kind of Tax Master. Having Tax Head and Percentage, like 12.5% etc. BranchInfo :...
What states are talking about? Usually commands are used to specify an intent to change state, so option 1 seems close to what you might want to do. However,...
For experienced user, Grid like entry is generally fast and they prefer it that way. It will be little difficult convincing them. We have to implement CQRS coz...
You can definitely send collections of data in a message, like sending an OrderCreated message with a collection of order line information. As long as its...
Hi Rickard, I'm no OO Guru either. Learning stuff as anyone. I wish I had the privilege talk with Dr. Trygve Reenskaug. I'm "familiar" with the article (i...
Yes, that's what my confusion is, should I send BranchInfo collection in DTO, as I need what is the updated by UI. It wont work by passing only Id's. I have...
One interesting thing about Roles and their Actors, is that they should have the same identity, differing only in terms of interface. In data terms, they ...
Hi all. Hi have a question about what's the best practice to save an entity. I Have 2 layers: Domain, DomainServices (Actually i have more, but in this...
Hi! I am very new to DDD but I have done a fair amount of reading on the subject. As I understand, repositories are where we retrieve and store entity objects,...
Hi all. Hi have a question about what's the best practice to save an entity. I Have 2 layers: Domain, DomainServices (Actually i have more, but in this...
Hi all, As a semi-frequent reader of this list and attendee of Greg Young's "unshackle your domain" presentation at QCon SF '08 I've followed the CQRS...
Trygve Reenskaug teaches real and pure OO in his talks and books. I'm not an OO guru but having read some of his examples and having talked to a Smalltalker...
Hello BKak, I have a similar situation with a grid here-and-there in the application. It is fine using a grid when it represents a table of data. In my one...
Well, none of it is the responsibility of the domain itself (the domain object and domain service I mean by that). I would opt for option 1, but with the...
To be clear are you refering to the transient instance vs persisted instance dilemma or more in general? Greg ... -- Les erreurs de grammaire et de syntaxe ont...
Dilemma? Sounds like there's been some discussion on this I might have missed. My views are clear on this: it's perfectly ok for a domain object to know that...
Ah the dilemma is that sometimes it matters for behavior whether or not an object is still in a transient state ... I generally try to avoid these cases but...