Reputation
986
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
8 18
Newest
 Quorum
Impact
~131k people reached

Jul
20
comment rand() gives same numbers again for a small range
@Neil "Fix my code" is not a question.
Jul
14
comment How to reduce a switch in a switch statement?
"Note that I have multiple gender options" Well, that's certainly in vogue these days...
Jul
13
comment Is the question “What is the using statement” a bad question to ask an interviewee?
@RemcoGerlich: Someone who hasn't yet worked with C# is not a C# developer at all, junior or otherwise.
Jun
9
comment What is the “type” of data that pointers hold in the C language?
You'd be better off asking about the format, not the type. Hence some off-piste answers below... (though Kilian's is spot-on).
May
19
comment Why are shortcuts like x += y considered good practice?
@DavidThornley: It's hard to say "they're identical" when they both have undefined behaviour :)
May
19
revised How do you avoid getters and setters?
https://public.wsu.edu/~brians/errors/somewhat.html
May
19
suggested approved edit on How do you avoid getters and setters?
May
12
awarded  Quorum
Apr
2
awarded  Informed
Apr
1
comment Manager reading version control commits
Okay but if it's a trivial fix then this is completely stupid.
Mar
23
comment What to call an HTTP API that is not RESTful?
Oh god this nonsense. I refuse to be sucked into this world of marketing buzzwords. You should too!
Mar
10
comment Does auto make C++ code harder to understand?
"Using auto guarantees you’ll get the right type." Not true at all. It only guarantees you'll get the type prescribed by some other part of your code. Whether that's right or not is entirely unclear when you hide it away behind auto.
Mar
10
comment How to monitor code review efficiently?
Yeah it's a must to actually sit with your underlings once in a while. I don't understand why you'd ask for a magic solution without doing this basic fundamental thing!
Mar
2
awarded  Notable Question
Feb
27
comment Why are structs and classes separate concepts in C#?
@MasonWheeler: Okay - you might be able to make a clearer distinction in your answer between your observations about C++ and your observations about C#, and why you think each observation is a pro over the other.
Feb
27
comment Why are structs and classes separate concepts in C#?
I can't tell what you're trying to say in your second paragraph. You refer to the OP's original observations that in C# structs have no inheritance and classes are reference types, but then you follow it up by seemingly using it as an example of poor design in C++. Don't get me wrong: C++ is horrible. But I can't see any valid arguments made for that in this answer which purports to do so.
Feb
27
comment Why are structs and classes separate concepts in C#?
"That objects as value types requires hassles like copy constructors" Lol, back in 1992 maybe. Look up the rule of zero.
Feb
27
suggested rejected edit on Why are structs and classes separate concepts in C#?
Feb
26
comment Is it premature optimization to add database indices?
@JonofAllTrades: They don't care if we have a few hours of poor performance due to a missing index. My point is that a large, free-to-use community-oriented website with a perpetual distribution cycle is very different from a periodically released, self-contained commercial product. Thus, SE is not a good example.
Feb
26
comment Is it premature optimization to add database indices?
@LosManos: Nobody pays to use Stack Exchange.