8,352 reputation
42245
bio website google.com/…
location Berlin, Germany
age
visits member for 3 years, 7 months
seen 2 days ago

Sep
13
awarded  Yearling
Aug
29
comment Why is Clean Code suggesting avoiding protected variables?
Why are public variables bad? Protected is just a more restricted kind of public. It's for the same reasons getters and setters are bad.
Aug
23
comment Overloading Operators - C++
Why a static function? A simple free function would do that, too.
Aug
20
comment What is the role of C++ today?
Related: programmers.stackexchange.com/q/113295/1512
Aug
15
comment Limitations of Polymorphism in statically typed languages
@Konrad: The idea that someone wants to store, iterate over, and call the same method on a bunch of objects without them having a logical common interface seems weird to me, too. If they have nothing in common, how come they are bunched together in some container and support the same operation? (See also my answer.)
Aug
14
answered Limitations of Polymorphism in statically typed languages
Aug
8
comment What backs up the claim that C++ can be faster than a JVM or CLR with JIT?
@Aaronaught: You have my sympathy.
Aug
7
comment Is STL implemented with OO?
Except that you should use inheritance with those containers, which is one of OOP's main features.
Aug
7
revised Is STL implemented with OO?
added 37 characters in body; added 235 characters in body; added 1 characters in body
Aug
7
answered Is STL implemented with OO?
Aug
7
comment Is STL implemented with OO?
When I was taught "OO" 15 years ago, I was taught the three crucial pillars are encapsulation, inheritance, and polymorphism.
Aug
7
comment What backs up the claim that C++ can be faster than a JVM or CLR with JIT?
@Aaronaught: I am at a loss as to what to reply to that. Did you really just dismiss my answer because it points out the underlying philosophy that made Stroustrup et al add features in a way that allows for performance, rather than listing these ways and features individually?
Aug
7
comment What backs up the claim that C++ can be faster than a JVM or CLR with JIT?
@Leo: Code bloat through templates was a problem 15 years ago. With heavy templatization and inlining, plus abilities compilers picked up since (like folding identical instances), lots of code gets smaller through templates nowadays.
Aug
6
comment I'm at a crossroads with programming and theory
C++ is >30 years old and has been one of the most-used languages for the last 20 years, so "languages come and go" doesn't really seem to apply to it.
Aug
6
awarded  Good Answer
Aug
6
comment What backs up the claim that C++ can be faster than a JVM or CLR with JIT?
@Matthieu: Of course, there's reason. But is this reason rational? From what I can see, the "cost of RTTI", if not used, is an additional pointer in every polymorphic class' virtual table, pointing at some RTTI object statically allocated somewhere. Unless you want to program the chip in my toaster, how could this ever be relevant?
Aug
5
comment What backs up the claim that C++ can be faster than a JVM or CLR with JIT?
@Matthieu: While I understand your sentiment, I can't help but notice that even that has been added with care regarding performance. RTTI is specified so that it can be implemented using virtual tables, and thus adds very little overhead if you don't use it. If you don't use polymorphism, there is no cost at all. Am I missing something?
Aug
4
awarded  Nice Answer
Aug
3
comment When is Singleton appropriate?
Now my standard link for all discussions regarding Singletons: jalf.dk/singleton
Aug
3
answered What backs up the claim that C++ can be faster than a JVM or CLR with JIT?