I think it depends on your requirements. If you do not have any business rules related to that role, then you probably won't need to make it part of your...
You can use a factory method in those cases. C# supports static methods on classes. Speaker.Create(....). Understand that Exceptions should be used when the...
Eric promotes placing the best modelers in the Core Domain. No reason to hold them back because most can't keep up. Ward Cunningham is probably not the best...
I think you need to understand the power of role. Maybe no need for you to model librarian but you can model a role that can be act as receivable that...
Hi! Here are some of my questions from the talk. 1. Finding the right set of abstractions or roles 2. When are getters/setters ok? 3. How do I know if I...
#1 thats is very difficult to answer in anything shorter than a few hundred pages. #2 as a rule avoid when writing OO code but perfectly fine in procedural ...
Hi sir! for #1, any books that you can recommend? #2, so what if you want to be able to update properties of an object/entity? #3, I'm not sure I clearly...
20475
Matthias Kampen
mkmailinglistaccount@...
Dec 2, 2010 4:05 pm
... If you have the model of a car and want it to turn right you don't want to update properties like: car.getIndicator().setFlashing(true); ...
#1 - Read Wirfs-Brock (two options, first book is good basic o-o) #2 - Use self delegation (self encapsulation); command behaviors set properties internally...
Also, in the last part of the talk, it was mentioned that not all the time you need to use OO. How does one know this? Thanks. ________________________________...
Hi Mathias, You need to look at the domain facts and the decisions that your software is suppose to capture and act on within a context. For instance, suppose...
Thank you very much. I have one last question with regards to the talk. It was mentioned that each method/behavior should make use of all the data/field in...
... More like, if it does it's fully cohesive, if it doesn't, then it's not fully cohesive. It's a measurement, and how you interpret that is up to you. For...
... How nice to hear from someone else who uses mixins! I also use a mixin based approach and I think it fits DDD well. I also find that it leads easily and...
From the talk, Greg said that when you boundaries, it is ok to write procedural code. I'm not sure what does that mean. ________________________________ From:...
... I think he meant when you are writing the layers that access the domain model, such as an application layer or REST/web layer (depending on how you slice...
There are multiple measurements here. There is the cohesion of the mixins and there is the cohesion of the final object. I have very often seen the overuse of...
I have an observation on aggregate root and cohesion. Take an aggregate root that holds three attributes/associations that do not collaborate. Say there is one...
I don't think would ever suggest only building fully cohesive objects. The trade off is not between DDD and SRP its between SRP (or can be represented as Ca...
As a side note most developers error the other way and take SRP too far forgetting about cohesion and end up with an anemic domain model. ... -- Les erreurs de...
Yes, I totally agree. This is the point I was trying to make a month or two ago (discussion on testing). IMO the only way to go highly cohesive is to produce...