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

Aug
19
comment Is there a need to keep tests for simple (self-contained) functions?
Isn't this like the definition of the sort of function you should be automatically regression testing? I don't get the premise of the question.
Aug
1
comment How to make a large codebase easier to understand for new programmers
@Telastyn: Yeah, maybe. Personally I'd write it in a standalone doc. But comment blocks at the top of source files isn't so bad.
Aug
1
comment How to make a large codebase easier to understand for new programmers
If you have a team of programmers working on a product, and each programmer only understands the specific code that they worked on, then not only is your team incredibly dysfunctional with an absurd bus factor, but one questions the quality of the code. How does one integrate code into a product without understanding the rest of the code in the same system??!?
Aug
1
comment How to make a large codebase easier to understand for new programmers
@Telastyn: This has nothing to do with whether the code is readable or not (and I hope it is). Documenting design rationale is absolutely important.
Jul
31
comment Why doesn't Python need a compiler?
"C++ needs to expose its compilation process because the language itself is incomplete" Er, what??
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.