Reputation
13,496
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
4 37 60
Newest
 Quorum
Impact
~267k people reached

Mar
4
comment In ifs inside for loops, prefer checking for true, or for false and continue?
That's not necessarily true, as they could easily compile to the same thing with optimizations enabled. Many optimizing compilers can even replace the whole loop with sum = 40 and skip the whole thing.
Mar
4
answered In ifs inside for loops, prefer checking for true, or for false and continue?
Mar
4
answered Releasing open source software too soon
Feb
28
comment Styleguide when coding in a static language
The signal to noise ratio of Java code is bad enough, no sense in making it worse.
Feb
27
comment 2 methods that are 75% the same?
Post them as examples please.
Feb
26
awarded  Guru
Feb
26
awarded  Good Answer
Feb
25
comment When NOT to apply Dependency Inversion?
@NWard: While that is handy, and often necessary for stuff like connections to databases, a lot of times, you can just use the real deal concrete class instead of mocking. If your project doesn't have any of those external elements, you don't need to mess around with all that abstraction.
Feb
25
awarded  Nice Answer
Feb
25
comment When NOT to apply Dependency Inversion?
@Doval: People sure do try though, don't they?
Feb
25
answered When NOT to apply Dependency Inversion?
Feb
24
comment Software development costs and influences
Your thinking that design and 'writing the code' as being very different is an early source of your misunderstanding. All code writing is design, building is for compilers.
Feb
22
awarded  Enlightened
Feb
22
awarded  Nice Answer
Feb
22
comment How is a dictionary better than a big switch, when mapping data to action?
@greyfade: while that's sometimes helpful, most of the time, YAGNI.
Feb
15
comment How would you assess a programmer's Github profile?
"On the same note, developers that tweet about drinking and going to see movies all the time tend to make mediocre hires.", yeah you definitely don't want people with healthy work-life balance now do you.
Feb
12
revised Should the expected value be hard-coded into the Assert
added 375 characters in body
Feb
12
comment Should the expected value be hard-coded into the Assert
@ErikPhilips: nothing is going to work for everything, but use what's appropriate for the task at hand. TestCase won't work in situations where you are testing the behavior of a particular class over time, such as state machines, for example.
Feb
12
answered Should the expected value be hard-coded into the Assert
Feb
12
comment Should the expected value be hard-coded into the Assert
I personally prefer to use the [TestCase] where the input and expected outputs are all passed as arguments to the test function, whenever possible.