Reputation
1,094
Next privilege 2,000 Rep.
Edit questions and answers
Badges
3 9
Newest
 Organizer
Impact
~126k people reached

  • 0 posts edited
  • 0 helpful flags
  • 10 votes cast
Jun
29
answered How do I design a subclass whose method contradicts its superclass?
Jun
19
revised How can I write unit tests that simplify feature implementation?
added 286 characters in body
Jun
19
comment How can I write unit tests that simplify feature implementation?
That second way isn't unit testing at all, because it's not testing a unit. It's idea testing. Idea-testing ("hey, if I try this, will it work") can be very useful, but it's testing an idea, not a unit or any other produced software.
Jun
19
answered How can I write unit tests that simplify feature implementation?
Jun
4
awarded  Organizer
May
21
awarded  Nice Answer
May
20
comment Short circuit evaluation, is it bad practice?
I see nothing wrong with if(TryThis || TryThat).
May
20
comment Short circuit evaluation, is it bad practice?
@linac now putting something on the right-hand-side of & or | to make sure a side-effect happens is something I'd say certainly is bad practice: It won't cost you anything to put that method call on its own line.
May
20
answered Short circuit evaluation, is it bad practice?
May
20
answered Where should my team start with becoming “modern”?
May
20
comment Where should my team start with becoming “modern”?
The reason normalization is called normalization and not normalizing or something else, is that at the time it was a topical joke to stick -ization on the end of things to make fun of the name of Richard Nixon's Vietnamization policy to increase training and equipping of South Viet Nam's troops while reducing the number of US troops in Viet Nam. This shows how "modern" normalization is.
May
14
awarded  Quorum
May
6
answered Is my usage of explicit casting operator reasonable or a bad hack?
Apr
21
comment Big O Question about an algorithm with (n^2 + n) / 2 growth rate
@BenVoigt I've yet to come across one with the same rhetorical impact as this had when I first read it; it's not originally mine, I stole it from Eric Lippert, who may have originated it or may have taken it from someone else. Of course it references jokes such as "π equals 3 for small values of π and large values of 3" which is older still.
Apr
20
answered Big O Question about an algorithm with (n^2 + n) / 2 growth rate
Apr
2
revised Does path coverage guarantee finding all bugs?
No need to lampshade-hang
Apr
1
comment How do I find a good middle way to make this library safe for concurrent operations
Oh, does the use mean the instance gets shared by SignalR Hub? (I don't know SignalR at all). That would make it fall into the case in my second last paragraph above. In that case I'd still recommend not locking on this though, just as general good practice.
Apr
1
comment Should I always throw the most specific or should I try to generalize exception types?
@Doval though there are arguments for and against allowing LibrarySpecificException to pass through and then documenting the method as throwing FrameworksCommonException that it is derived from.
Apr
1
answered How do I find a good middle way to make this library safe for concurrent operations
Apr
1
comment Best way to define, start and stop threads in C#
I'm guessing it's a sort of pre hoc ergo propter hoc thing; a system has performance problems and because of that it runs at high CPU utilisation while not getting stuff done, then improvements mean that it runs at low CPU utilisation while delivering more actual work per second, (just as a massive increase to your analogous factory's efficiency could result in both more output and more idle time) and the resultant low CPU utilisation is seen as a symptom of the performance rather than a symptom of the efficiency.