3,657 reputation
21932
bio website
location
age
visits member for 4 years, 4 months
seen yesterday

Jan
15
awarded  Good Answer
Jan
14
revised Is it always a best practice to write a function for anything that needs to repeat twice?
added 13 characters in body
Jan
14
revised Is it always a best practice to write a function for anything that needs to repeat twice?
added 295 characters in body
Jan
14
awarded  Nice Answer
Jan
14
revised Is it always a best practice to write a function for anything that needs to repeat twice?
deleted 5 characters in body
Jan
14
answered Is it always a best practice to write a function for anything that needs to repeat twice?
Jan
7
answered Does using == in JavaScript ever make sense?
Dec
28
awarded  Yearling
Dec
18
comment How to define “or” logically
I simplified it down for you. (I also changed true to arg1 to make it work better with non-Boolean types.)
Dec
18
revised How to define “or” logically
deleted 56 characters in body
Dec
18
comment Are all magic numbers created the same?
Mathematical constants can't change, so leave them as-is. Physical constants aren't so constant though (they can be re-measured, they can be redefined, etc.) so they're more magical.
Dec
11
comment Is there ever a reason to use an array when lists are available?
@TheodorosChatzigiannakis: Arrays are faster than lists. Just run a simple benchmark to check.
Nov
11
comment Should I pass in filenames to be opened, or open files?
@JonathanEunice: Not sure what you're disagreeing about since we're talking about different things but ok.
Nov
11
comment Should I pass in filenames to be opened, or open files?
@JonathanEunice: Uh, that's not "counterbalancing with a tradeoff"... when you said that, it implied you were claiming there was some advantage to passing around the file names. But that's not what you're saying, so I don't have anything to say on the topic since it's not relevant to the comparison I was making in my answer.
Nov
11
comment Should I pass in filenames to be opened, or open files?
@JonathanEunice: I don't get it, how does passing around the file names instead of the handles solve this issue in any way? Either way all the readers have to know what part of the file you're reading from.
Nov
11
comment Should I pass in filenames to be opened, or open files?
@JonathanEunice: Coordinate in what sense? All they need to do is set the file position to be wherever they want it to be.
Nov
11
answered Should I pass in filenames to be opened, or open files?
Nov
4
answered Should a getter throw an exception if its object has invalid state?
Oct
25
answered Code that converts a value into a different representation, then converts it back to where it started is bad, but how?
Oct
12
awarded  Popular Question