Reputation
3,314
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
8 21
Newest
 Nice Answer
Impact
~57k people reached

Apr
30
comment Dealing with class optional dependencies
You seem to be getting at the Open/Close principle here. Frequent class modification suggests a a design issue of some kind. A coherent class would tend to not change - at best would change for one reason; i.e. it's responsibility changed.
Apr
29
comment Dealing with class optional dependencies
50 instead of 1? The answer would not scale per se (I've used 3 in one method so far - 50 method parameters is nonsense), but if 50 implies a whole class then the null object comes to mind. At this scale there must be consideration of overall design, and there are many possibilities.
Apr
28
answered Bad Practice using Auto Generated Classes for Data Access
Apr
28
revised Dealing with class optional dependencies
added 89 characters in body
Apr
28
answered Dealing with class optional dependencies
Apr
25
comment C# structure needed for dynamic behaviour
Research a game called "Zork". I got lots of interesting hits when I searched for "zork data structures"
Apr
23
answered Architecture: Are form default values considered business logic and where should the logic to calculate them be placed?
Apr
23
comment Generics in C# Test Class
I suspect you might be looking for the Type type. As in: servicestoTest.Add(typeof(Languages_Service)). It is a System.Type object and is meta data about the Language_Service type and you can instantiate an object from it.
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