Reputation
13,368
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
1 29 59
Impact
~573k people reached

16h
revised What's the point of passing a parameter by reference in C#?
added 4 characters in body
1d
revised Is scanning the ports considered harmful?
added 110 characters in body
Aug
3
awarded  Notable Question
Jul
8
awarded  Nice Answer
Jun
27
awarded  Necromancer
Jun
23
revised Managed Languages vs Compiled Language difference?
added 603 characters in body
Jun
23
revised Loose Coupling in Object Oriented Design
added 2 characters in body
Jun
23
revised Understanding the static keyword
added 7 characters in body
Jun
23
comment Should I give the answer to a failed interview coding exercise?
@Graham - Been there too. Late last year I did some interviews for a short-term project (short-term for them; I'm still working on that same project, that's just how it goes). Our recruiting firm had "pre-screened" them and were confident my interviews would be a formality. When I asked something out of a Microsoft cert course, like "What are the A-B-C's of WPF", I got the right answer without hesitation. When I set up the shell of a FizzBuzz-like problem on the whiteboard including some simple "unit tests" I expected them to pass, and handed them a dry erase marker, I got blank stares.
May
20
comment Interfaces on an abstract class
More or less, yes. The big advantage is that you will reduce the number of references to BaseWorker that will have to change to be BetterBaseWorkers instead; most of your code won't reference the concrete class directly, instead using IFooWorker, so when you change what is assigned to those IFooWorker dependencies (properties of classes, parameters of constructors or methods) the code using the IFooWorker shouldn't see any difference in usage.
May
4
revised Why do people nowadays use factory classes so often?
added 10 characters in body
May
4
comment Why do people nowadays use factory classes so often?
A protected and/or internal constructor would be such a signal; this constructor would only be available to consuming code whether in a subclass or within the same assembly. C# does not have a keyword combination for "protected and internal" meaning only subtypes within the assembly could use it, but MSIL has a scope identifier for that type of visibility so it's conceivable the C# spec could be extended to provide a way to utilize it. But, this really doesn't have much to do with the use of factories (unless you use the restriction of visibility to enforce a factory's use).
May
4
comment Should we always DRY? Any edge case examples of when not to?
@StevenBurnap - I actually disagree here; I follow the same mentality for POCs as for code specifically intended to enter production. This is because POCs and other "prototype code" get folded into production code all the time; there's even a term for it, "protoduction". Management's mentality is, the POC solves the problem, so the "least-work" solution to that problem in the production system is to bolt the prototype code onto the production system the fastest way possible. The better your prototype code, the more willing you will be to go along with that and the happier everyone will be.
Apr
28
revised Should we always DRY? Any edge case examples of when not to?
added 91 characters in body
Apr
28
comment Should we always DRY? Any edge case examples of when not to?
I've been bitten a couple times. I might want to amend that to say that making two tests from one is typically OK, but when that grows into five or six you have to look at it the same way you would production code and say "this is too much, it needs a refactor".
Apr
28
revised List comparing techniques for faster performance
added 58 characters in body
Apr
28
answered List comparing techniques for faster performance
Apr
28
comment Why is it common to put an underscore before a method in JavaScript?
@Snowman - While "asked and answered" is a good reason to close, I disagree with what you actually chose; coding convention questions are definitely on-topic here.
Apr
28
answered Should we always DRY? Any edge case examples of when not to?
Apr
27
revised Why is it common to put an underscore before a method in JavaScript?
added 172 characters in body