611 reputation
79
bio website
location Chemnitz, Germany
age 27
visits member for 3 years
seen Jun 16 at 10:31

Jun
18
awarded  Yearling
Jan
30
awarded  Good Answer
Jan
22
comment Why does DirectX use a left-handed coordinate system?
@JohnR.Strohm I absolutely agree with this attitude. I was just saying, that this right hand trick works equally well for the left hand (and thus left-handed coordinate systems) and thus doesn't make right-handed systems more intuitive on its own.
Jan
22
comment Why does DirectX use a left-handed coordinate system?
@JohnR.Strohm Of course it does, that's what I was saying.
Jun
18
awarded  Yearling
Jun
13
comment Why is Python written in C and not in C++?
@Jeremy "I wonder what Linus thinks of Java :D" - Given that he seems to have mistaken C++ for Java, probably the same.
May
13
comment Why does DirectX use a left-handed coordinate system?
@bobobobo "I noted the view matrix generated by gluLookAt can change the handedness as well" - No, it doesn't. That's just how the forward vector is computed, but this matrix is nevertheless an ordinary rigid body trasnformation in right-handed space (and in fact +z is indeed "backward" in right-handed space). Negating the forward vector doesn't have anything to do with changing the handedness of the coordinate space.
Nov
6
comment In C and C++, what methods can prevent accidental use of the assignment(=) where equivalence(==) is needed?
@ShashankJain Well Ok, after my ~10 years of C++ I still happen to make this error once every two years. But of course you're absolutely right in that it's that rare that it doesn't justify any additional measures. In the end the compiler is eager to notify me of this with some warning, anyway (sometimes too eager).
Sep
11
comment What to learn after standard C++?
@DocBrown In the same way like suggesting someone who has just learned C++ to make a take on Java ;-)
Sep
4
comment Grading an algorithm: Readability vs. Compactness
If you're asking him to implement a function in C, then don't blame him for implementing it in valid, clean, concise and straight-to-the-point C.
Sep
4
comment Grading an algorithm: Readability vs. Compactness
What "priorities" to be familiar with?
Jul
3
comment Is this a decent use-case for goto in C?
If with short-hand evaluation you mean short-circuit evaluation, this is exactly not what's done here due to the use of bitwise OR instead of logical OR.
Jun
18
awarded  Yearling
Jun
8
awarded  Caucus
Jun
1
comment Motivation and use of move constructors in C++
Besides the fact that move semantics can achieve much more (as said in the answers), you shouldn't ask what are the situations where passing by reference or by smart pointer are not sufficient, but if those techniques are really the best and cleanest way to do so (god beware a shared_ptr just for the sake of fast copying) and if move semantics can achieve the same with nearly no coding-, semantics- and cleanliness-penalty.
Jun
1
comment What is the best C++ source code to read for a beginner?
Well I guess the boost source code won't be that good an idea for a beginner. You will probably drown in templates and SFNINAE techniques you don't understand their workings and reasons yet.
May
11
comment Understanding C++ for windows desktop application
Whereas I agree with your answer, I don't really know what a Visual C++ book is and what it should teach you. Do you mean a manual for the IDE? As otherwise books that claim to teach you Visual C++ in an actual programming related context usually just mess up Visual C++ with C++/CLI or (even worse) MFC and the fact that they're not aware of this term mixing doesn't make them any good.
May
11
comment Using C++ but not using the language's specific features, should switch to C?
@AareP Of course the source code is ugly, it has to be tuned for maximum flexibility and performace (which your clean implementation does surely not achieve as successfully as the standard library)! But you know what, you're not supposed to use the source code of those implementations anyway.
May
11
comment Using C++ but not using the language's specific features, should switch to C?
+1 Some time ago I had to write a library to be used in another C project and I thought it was a good idea to also implement it in C, man what a stupid idiot I was back then.
May
11
comment Using C++ but not using the language's specific features, should switch to C?
@Lohoris You don't need a citation for common sense. In which way should C be more performant than C++?