13,476 reputation
43760
bio website
location Minneapolis, MN
age
visits member for 4 years, 7 months
seen 8 hours ago

Mar
4
comment In ifs inside for loops, prefer checking for true, or for false and continue?
@Telastyn: the original problem statement isn't necessarily a requirement from any sort of specification. You are making many assumptions which aren't necessarily true.
Mar
4
comment In ifs inside for loops, prefer checking for true, or for false and continue?
@Telastyn: I didn't make such a general statement. How does "make things easy for yourself" equate to that?
Mar
4
comment In ifs inside for loops, prefer checking for true, or for false and continue?
And I've used continue roughly a gazillion times. Different kinds of software will use different things.
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