8,403 reputation
42245
bio website google.com/…
location Berlin, Germany
age
visits member for 3 years, 10 months
seen Jul 18 at 16:50

Sep
26
comment Using T[1] instead of T for functions overloaded for T(&)[N]
I'm a bit hazy on P.SE's policies, but wouldn't this be a better fit for SO? ICBWT.
Sep
26
answered Using T[1] instead of T for functions overloaded for T(&)[N]
Sep
24
comment I need a decent alternative to c++
@Giorgio: Well, in any case, C++ is that "other language" to do that in. If you remove the parts necessary for that, it would have to be done in C or assembler.
Sep
24
comment I need a decent alternative to c++
@Giorgio: No, they are needed to implement the other features. Inside std::string it's a very dangerous area to tread, but outside it's nice to use. Part of what makes C++ so great is that all of it can be written in C++. As a contrast, try to implement the BASIC string type in BASIC, Or Java's in Java.
Sep
24
comment I need a decent alternative to c++
@DXM: The problem with programmers having to learn C++ for a long time before they don't make silly errors IME usually boils down to them having to unlearn wrong (C-like, C-With-Classes-like) techniques. So it is mostly a problem of bad education. C++ developers who learned doing it the Right Way™ from day one do not have that problem. Also, I would see it as an advantage, not a disadvantage, that C++ gives you all the necessary tools to do just about anything you want.
Sep
22
comment I need a decent alternative to c++
Memory handling tiring you? Odd. I have written C++ for years with rarely ever having to type new, and never delete. Maybe you just think you have learned C++?
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.