3,250 reputation
820
bio website
location
age
visits member for 3 years, 7 months
seen 30 mins ago

1d
comment Testing loses its effectiveness if all programmers don't use them
"What if the two watches have the same time?" Well, then you have too many watches. i.e. you're wasting effort and time on superfluous tests.
May
8
comment Object creation: when should I expose a factory vs wrapping class?
"wrapper" sounds like a "factory method" to me - tomato, tomata. At some point build complexity would compel me to put construction into a separate class - a judgement call. In any case I don't want the client to need to know how to composite any given IStackExchangeClient. Here, I like enum: SEC.Create (SEType.ThisKind), and let the factory method - or class - build a "ThisKind"
May
8
comment What design pattern is used in this delegating scenario?
smells a lot like the visitor pattern. Further your intent sounds like the visitor pattern instead of the decorator pattern
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."