Search the web
Sign In
New User? Sign Up
altdotnet · Alt Dot.Net Discussions
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

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
Properties considered harmful   Message List  
Reply | Forward Message #15760 of 23356 |
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?

Cheers,
Miika


Thu Sep 25, 2008 4:28 am

khmerang
Offline Offline
Send Email Send Email

Forward
Message #15760 of 23356 |
Expand Messages Author Sort by Date

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,...
Miika Makinen
khmerang
Offline Send Email
Sep 25, 2008
4:28 am

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...
Tuna Toksöz
mutlaksifir
Offline Send Email
Sep 25, 2008
5:54 am

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...
Miika Makinen
khmerang
Offline Send Email
Sep 25, 2008
6:28 am

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...
David Laribee
davidlaribee
Offline Send Email
Sep 26, 2008
3:36 pm

... 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...
Paul Cowan
dagda1970
Offline Send Email
Sep 26, 2008
3:51 pm

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...
Casey Charlton
caseycharlton69
Offline Send Email
Sep 26, 2008
4:02 pm

... 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...
Paul Cowan
dagda1970
Offline Send Email
Sep 26, 2008
4:20 pm

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...
Bryan Murphy
murphybryanp
Offline Send Email
Sep 26, 2008
4:29 pm

... To: altdotnet@...: bmurphy1976@...: Fri, 26 Sep 2008 11:29:02 -0500Subject: Re: [altdotnet] Properties considered harmful What if...
Paul Cowan
dagda1970
Offline Send Email
Sep 26, 2008
4:42 pm

Man, even your name fails that validation. :P...
alberto
alberto.biko
Offline Send Email
Sep 26, 2008
5:40 pm

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...
Casey Charlton
caseycharlton69
Offline Send Email
Sep 26, 2008
4:31 pm

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...
Greg Young
gumboismadeo...
Offline Send Email
Sep 26, 2008
4:59 pm

... Wrong place wrong time.I am sensing a certain amount of agreement.I can now retire to the bar at peace with the world............dagda1@... To:...
Paul Cowan
dagda1970
Offline Send Email
Sep 26, 2008
5:03 pm

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....
Greg Young
gumboismadeo...
Offline Send Email
Sep 26, 2008
5:06 pm

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 ...
jdn3times
Online Now Send Email
Sep 26, 2008
5:13 pm

If *only* they had inverted their control!!!!!!!! :) 2008/9/26 jdn3times <jdn3times@...> ... If *only* they had inverted their control!!!!!!!! :) ...
Casey Charlton
caseycharlton69
Offline Send Email
Sep 26, 2008
5:32 pm

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 ... ...
jdn3times
Online Now Send Email
Sep 26, 2008
6:31 pm

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:...
Michael D. Brown
brownxs3
Offline Send Email
Sep 26, 2008
6:17 pm

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...
jdn3times
Online Now Send Email
Sep 26, 2008
6:26 pm

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 ... ...
Greg Young
gumboismadeo...
Offline Send Email
Sep 26, 2008
6:29 pm

Not if you cheat. jdn ... easy ... all ... [mailto:altdotnet@yahoogroups.com] ... into ... world............ ... working ... models, ... as ... say ... they ...
jdn3times
Online Now Send Email
Sep 26, 2008
6:38 pm

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...
Greg Young
gumboismadeo...
Offline Send Email
Sep 26, 2008
6:45 pm

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 ...
jdn3times
Online Now Send Email
Sep 26, 2008
6:50 pm

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...
Greg Young
gumboismadeo...
Offline Send Email
Sep 26, 2008
6:59 pm

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 ... ...
jdn3times
Online Now Send Email
Sep 26, 2008
7:01 pm

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...
Alan Buck
duvallbuck
Offline Send Email
Sep 26, 2008
10:43 pm

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...
Sidar Ok
oksidar
Offline Send Email
Sep 27, 2008
12:31 am

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 ...
Casey Charlton
caseycharlton69
Offline Send Email
Sep 27, 2008
7:28 am

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...
David Laribee
davidlaribee
Offline Send Email
Sep 27, 2008
4:05 pm
First  | < Prev  |  Next > Last 
Advanced

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