3,185 reputation
820
bio website
location
age
visits member for 3 years, 6 months
seen yesterday

Apr
9
revised C# Subject Observer Architecture question
Elaborate on OP's comment
Apr
7
comment Inheritance or Composition?
This SE thread may be helpful
Apr
7
comment Parking Simulation Software Design
up-vote. Good thinking! I'm proud for ya'. Seriously. And + to Doc's answer that seems to explain the wrong turn in design ( just a little car parking lingo, there) everyone else is making. Re: your link; everyone should RTFQ. i.e. "...simulate a car park". And the follow-on explaination simply does not get into vehicle technical details. No axle count, Gross Weights, dimensions, etc.
Mar
28
awarded  Explainer
Mar
28
answered C# Subject Observer Architecture question
Mar
27
answered Abstract classes and constants
Mar
27
revised Abstract classes and constants
deleted 1 character in body
Mar
27
comment When to make a method part of an interface or a concrete implementation?
public abstract class vis-a-vis public interface. Yeah, they're different. But they both provide an interface
Mar
27
comment Beginner Decorator Pattern Question
In that article, a rule of thumb: "Decorator supports recursive composition" . This I think informs the "why" of the question. Then here: the Composite pattern we see a very similar design - the difference being that black (or not) diamond - aggregation vis-a-vis composition. So, yeah, "recursive composition."
Mar
27
answered When to make a method part of an interface or a concrete implementation?
Mar
27
comment Should I initialize a member variable in declaration when it is initialized by a constructor parameter?
+1. IMHO it boils down to if you care that the field is null after Foo is instantiated. public X x - this guy is public AND we have a constructor that <strike>does</strike> did not check for null. This tells me we don't care. Caveat emptor!
Mar
27
revised Should I initialize a member variable in declaration when it is initialized by a constructor parameter?
null-coalescing operator
Mar
14
comment Observer pattern without state change?
dittos. Certainly client state changed - it now has a new/different connection. Think about your layers of abstraction - somewhere changed state. I wonder if a new connection is merely a component of a "higher perspective" state change; perhaps there is an abstraction that needs a more formal/concrete presence. Finally, mega-dittos on the observation of over-thinking pattern implementation and use.
Feb
16
comment How can I ask my boss (in a polite way) to comment his code?
Start commenting the code yourself. Why should we treat comments like holy scripture? Who better to make comments than one who is unfamiliar - who knows where comments are needed. Besides good commenting takes practice and is harder than you'd think. Strive for a balance of needed detail and big picture. Finally, I hate realizing that I'm the nth person to re-learn a particular uncommented code bit over the years. (we have 100's of k's of uncommented LOC). Follow the Boy Scouts rule: leave your code-site better than you found it.
Feb
8
awarded  Good Answer
Feb
8
awarded  Nice Answer
Feb
8
revised Why is instance creation the way it is?
added 121 characters in body
Feb
8
revised Why is instance creation the way it is?
added 91 characters in body
Feb
8
revised Why is instance creation the way it is?
added 91 characters in body
Feb
7
answered Why is instance creation the way it is?