611 reputation
79
bio website
location Chemnitz, Germany
age 27
visits member for 3 years, 6 months
seen Nov 28 at 1:55

May
11
comment Using C++ but not using the language's specific features, should switch to C?
The question is not what you don't use/need from C++ (although I guess you would indeed need it if you knew it better, but that aside), but what C would actually buy you in addition to C++, which is just nothing (no, not even performance). It would be only so that you can say "I'm writing real C and not some strange wannabe C++", but since C++ is a multiparadigm language anyway, this is just no argument. If you don't need/want OOP or generic programming, then don't use it, nobody is punishing you for not using the complete feature set of C++.
May
11
comment What are the roles of singletons, abstract classes and interfaces?
One manager is indeed more than enough ;)
Mar
20
comment what is message passing in OO?
More or less just "method calling" in the usual sophisticated OO-slang ;)
Mar
8
comment C++ Renaissance - marketing slogan?
@JonHarrop No, only partly, given the context (see my last sentence). And it's definitely not wrong either.
Mar
8
comment C++ Renaissance - marketing slogan?
@JonHarrop I wouldn't argue with him if the immediately preceding sentence said: "features C++ had since long ago have only just come to .NET languages, like arithmetic". The meaningfulness of this (as C++ predates .NET, anyway) is another question, but he obviously is right and obviously didn't mean arithmeitc in general. And also the meaningfulness gains much quality when somebody else likes to argue that .NET languages have many nice features, like arithmetic (which doesn't imply the OP did, but many do).
Mar
8
comment C++ Renaissance - marketing slogan?
@JonHarrop You don't really get the context, do you? And no, I don't mean you don't ever get any context. My comment is meant in the context of the above discussion.
Feb
27
comment What are good strategies in C for dealing with pointer errors of this type?
@Adel Sorry, it may have been a bit harsh, but I just couldn't get the point of this question in any way.
Feb
27
comment What are good strategies in C for dealing with pointer errors of this type?
Huh? Just don't make such errors. And if you did, be happy the compiler found it and correct it. What else do you want to hear? Don't use C? But well, another language doesn't completely protect you from the burden of actually understanding what you do.
Feb
20
answered If Instance is for Class, what's for Template?
Feb
17
comment Are utility classes with nothing but static members an anti-pattern in C++?
@JanHudec Yeah, good points. I was more after the argument that you cannot create templated namespaces, which can come in handy when encapsulating a bunch of type-consistent functions and/or classes (e.g. a mathematics module templated on the type of real numbers). Other than this I'm completely on the namespaces-over-static-classes side.
Feb
11
comment Are utility classes with nothing but static members an anti-pattern in C++?
+1 Templates are indeed a point where namespaces still lack features.
Feb
11
comment Are utility classes with nothing but static members an anti-pattern in C++?
Short answer: You just don't need a class to wrap these functions. Free functions are a much cleaner fit for your task than crunching them into some pseudo-OO construct, which is a workaround you only need in "purely-OO" languages.
Feb
6
comment How to find siblings of a tree?
+1 Nice sarcastic reaction to the OP's comments on the other answers. Oh wait, it was sarcasm, wasn't it?
Feb
6
comment How to find siblings of a tree?
@smallB I'm pretty sure the interviewers didn't want to see a working C++ program on a whiteboard. They're not idiots, man. The question was about an algorithm. Of course there is a huge difference between a general algorithm and a working program, but the latter doesn't belong on a whiteboard, whereas the former is really just some 10-lines of code large.
Feb
6
comment How to find siblings of a tree?
@smallB So don't blame the answerer if you're not able to transform these 10 lines into some working code on your own, which hasn't been the question, anyway!
Feb
6
comment How to find siblings of a tree?
@smallB Well honestly, every 2nd year CS student should be able to come up with this solution. They didn't ask you about working code, but an algorithm. I'm pretty sure they would have been perfpectly satisfied with the answerer's first 10 lines of pseudocode, which perfectly demonstrate the algorithm. The interviewers also know that nobody can come up with a working program on a whiteboard in 3 minutes. They just wanted a simple algorithm of 10 lines of pseudocode maximum.
Feb
2
revised Private variable vs property?
deleted 20 characters in body
Feb
2
comment Determining the right amount of documentation
Whereas it is indeed a good idea to avoid too much documentation, your boss just does it for all the wrong reasons.
Feb
2
answered Private variable vs property?
Jan
17
comment Source control workflow for managing a software platform
It may still be a better fit on programmers.se, but I'm not sure about that.