Feb
22
comment How important is understanding the coding behind sorts?
@AndrewMartin: Quite the opposite. As the answer states, there's generally never a need to write them. They exist in libraries already, or the libraries you're using already sort the data if needed. It's a very low-level thing. And if you did find your self in a place to need to write one, who cares if you can magically write the best version off the top of your head? I doubt anyone could. Just look it up.
Dec
20
comment Does auto make C++ code harder to understand?
@paul23: What does using auto versus the type gain you, then, if your only objection is "I don't know how to use this". Either makes you look it up anyway.
Jun
9
comment Real programmers use debuggers?
@Job: Take a look at en.wikipedia.org/wiki/Formal_verification#Industry_usage
Jun
9
comment Real programmers use debuggers?
"one can never prove that a program is correct" That's not true.
May
10
comment The “blub paradox” and c++
Coroutines are isomorphic to functors.
Mar
29
comment Real-world scenarios for protected methods
Why -1? This is the first thing I thought of.
Feb
1
comment Why do we have postfix increment?
@Cody: It's the former. (That said I'm in the rare group that's totally fine with breaking code with huge changes, if it means better code, but that's a separate issue.)
Feb
1
comment Why do we have postfix increment?
@Cody: Because some things are both confusing and useful. He isn't confused by post-increment itself, he's confused about it's usefulness. We shouldn't have things that are useless, confusing or not.
Jan
9
comment What can I do when the interviewer doesn't know the answer to his/her own question?
You should contact them with an example of a pure virtual function with a definition, so they know.
Jan
9
comment What can I do when the interviewer doesn't know the answer to his/her own question?
Nope, sorry. He's right.
Dec
23
comment Why hasn't a faster, “better” language than C come out?
You won't be writing an operating system in C#. (We're talking about systems programming languages, programming languages that compile to native assembly. anything you can do in any other language, you can do in C/C++/D, but not the other way.)
Dec
8
comment Why hasn't a faster, “better” language than C come out?
Really? Last one I know of is C99. Is there a new standard coming out?
Dec
8
comment Why hasn't a faster, “better” language than C come out?
But to clarify, simple for the compiler does mean simple to pick up. Perhaps not simple to implement complicated ideas in.
Dec
8
comment Why hasn't a faster, “better” language than C come out?
Correct. That's why it's so common in microcontrollers.
Dec
8
comment Why hasn't a faster, “better” language than C come out?
Well I'd prefer to have my response marked as the answer, not me :)
Dec
8
comment Why hasn't a faster, “better” language than C come out?
And C++ is still being updated.
Dec
8
comment Why hasn't a faster, “better” language than C come out?
C++ is just as fast and much more productive to write in. <3