As I've been struggling to understand the meaning of "encapsulate behaviour not state/data" I'm wondering what are c# properties actually useful for? To me, they've made more difficult to get away from anemic data objects... thoughts? Could properties be considered harmful?
As I've been struggling to understand the meaning of "encapsulate behaviour not state/data" I'm wondering what are c# properties actually useful for? To me,...
Are get_Xxxx and set_Xxxx harmful? ... -- Tuna Toksöz Typos included to enhance the readers attention! Are get_Xxxx and set_Xxxx harmful? On Thu, Sep 25, 2008...
Good question. Right now most of my objects begin life as a set of properties and I would probably rethink my model if I had to use methods like that... what I...
Yes. They're effectively the same thing though not as syntactically nice: accessors and mutators. The real question is: where are properties harmful? A domain...
... Setters do promote anemic models but adding logic in setters has not been my experience.Can somebody explain why having a property for firstname and a...
Can you have a first name without a surname or vice versa? So apart from dave's coupling issue ... A method like SetName(first, last) allows validation all at...
... Indeed it is and already I can see extra coding for a simple example. For me and the application I am currently working on, I have a an isvalid method in...
What if my first name was Sam or Alan? Doesn't a minimum length of 5 characters for your first name seem awfully strict? I don't find fault with your...
For simple UI applications using AR this is overkill ... For 95% of applications DDD with all it's overhead is overkill, for the other 5% it is what stops it...
Perhaps its because of the types of applications you are working on? Web apps in general are fairly naive in terms of domain models, most are forms over data...
Me too ... wait its 10 am ... ok I'll go anyway. Cheers, Greg ... -- It is the mark of an educated mind to be able to entertain a thought without accepting it....
I owned stock in both Lehman Brothers and Washington Mutual. I'll join you, make it a double. jdn ... these ... on? ... most ... you ... its ... are ... save ...
LOL. They could have been channelling the Tao of DDD and cuddling Ayende and I don't think it would have helped. jdn ... I'll ... "Greg ... into ... ...
Ouch, I'm sorry man. They're investigating all of the big players in the sub-prime lending game for fraud now. It smells like Enron all over again. From:...
I think it was a combination of stupidity and short selling. jdn ... in the sub-prime lending game for fraud now. It smells like Enron all over again. ... On...
Short selling has little to do with it. Short sellers are just an easy political target. When you short, you have to buy back at some point. Cheers, Greg ... ...
Not if you cheat. jdn ... easy ... all ... [mailto:altdotnet@yahoogroups.com] ... into ... world............ ... working ... models, ... as ... say ... they ...
umm no ... you always have a buy. You make your profit on the buy ... without it you would only have 1/2 a transaction and in the case of a naked short would...
Point #1: I'm joking. Point #2: you don't have to always pretend you are the only subject matter expert in existence. Seriously. I realize that everyone is ...
Its not that ... I have a sore spot for the rhetoric around short selling right now in politics and the media. I have listened to so many people become "market...
Well, I just lost my shorts...LOL. The rhetoric was a lot more fun in the dot.com days before the bubble bursting. "We're increasing eyeballs!!!!!!" jdn ... ...
I'm with you on this Greg. It wasn't short selling. It was the creativity packaging of 'credit default derivatives' that bundled up the mortgages (including...
I do agree that DDD pays of in big enough applications, but this certainly doesn't mean that you won't be applying OO design principles just because you are...
Confusing OOP and DDD is something I wish people would stop doing :) DDD is a methodology more than anything else ... OOP is applying an OO language ...
The "every square is a rectangle, but not every rectangle is a square" argument doesn't work. I believe DDD, at least in part, is applicable in other...