174 reputation
18
bio website xofz.com
location Mukilteo, WA
age 30
visits member for 4 years, 3 months
seen Oct 23 at 20:16

Dec
15
awarded  Notable Question
Feb
26
awarded  Caucus
May
13
awarded  Popular Question
Oct
3
comment What is the point of properties?
@delnan: can you provide a convincing argument for "setting an attribute," in which such an action is neither necessarily a state change or a behavior change? This is interesting to me.
Oct
1
awarded  Commentator
Oct
1
comment What is the point of properties?
@delnan: there is something fundamentally flawed with typing obj.x = y. My argument is that if properties were that syntactic sugar, obj.x would be a method, not a property. Methods cannot be assignment targets. Even though obj.x = y doesn't change the actual behavior of the setter, the "syntactic sugar" sure makes it look like that. I asked for some syntactic sugar; properties gave me syntactic vinegar.
Sep
30
comment What is the point of properties?
@delnan: Properties are not that syntactic sugar. Properties can be treated like fields (they can be used as an assignment target, if they have a setter). Methods cannot.
Sep
30
comment What is the point of properties?
@Winston Ewert, could you clarify? Excepting your first sentence, what you said made no sense.
Sep
29
comment What is the point of properties?
They don't, but if they're going to be private, they should just be member variables.
Sep
28
comment What is the point of properties?
However, properties would then PUBLICLY EXPOSE state. This is a bad thing.
Sep
28
comment What is the point of properties?
You basically just said, "properties are a great way to represent state, and that is their point."
Mar
27
awarded  Citizen Patrol
Mar
27
comment What is the point of properties?
@Dean Harding. Initially, it was something like, "why would I use properties if I am doing object-oriented programming?" Maybe even, "how would I use properties if I am doing object-oriented programming?"
Mar
27
comment What is the point of properties?
Why not account.Deposit(amount)?
Mar
26
asked What is the point of properties?
Mar
8
awarded  Scholar
Mar
8
comment What are the problems with a relatively large common library?
You're right. Ugh, I guess no matter how much I want .NET to be Smalltalk, it just isn't.
Mar
8
accepted What are the problems with a relatively large common library?
Mar
6
awarded  Student
Mar
1
asked What are the problems with a relatively large common library?