8,352 reputation
42245
bio website google.com/…
location Berlin, Germany
age
visits member for 3 years, 7 months
seen Apr 14 at 22:36

Nov
5
comment Is the C programming language still used?
@James: And unless you manage to explain why there is no room between portable assembler (you do know that C was created as such, don't you?) and half-interpreted languages on virtual machines, I will have to decide which of those categories to put your "argument".
Nov
5
comment Is the C programming language still used?
No, @James, the problem is that, whatever argument is presented, some C-zealot will still yell "but code-bloat!" and "it's doing stuff behind my back!" while covering his eyes and plugging his ears. And that's just the rational ones. The others do as Torvalds does, say things like "you are full of bullshit" instead of making any points, and honestly believe that this is any argument other than for them being infantile.
Nov
4
comment Is the C programming language still used?
@James: Might I kindly point you at this comment, where there's a link to a posting in which someone earnestly takes Linus' rant as if it was something intelligible, and takes it apart sentence by sentence. Write a reply to that that's at least half as intelligent as that one and post the link here. Or go back to the cave you came from, and keep cargo-culting.
Oct
30
comment How to make the switch to C++11?
@JonPurdy: I understand that it includes that. However, I dispute that a traditional for loop is better than std::for_each(). In fact, I believe it's the opposite. Anyway, this now gets my upvote. :)
Oct
28
comment How to make the switch to C++11?
At first I thought suggesting it for learning C++11 would be odd, but seeing that you are still stuck in C-With-Classes land... A decade ago I read Koenig/Moo's Accelerated C++. By the time I was actually already doing template meta-programming (I only read it for a review), but it still felt like a revelation. (I used it as a base for teaching C++ ever since.) Coming from C With Classes, the book can show you a whole new language you didn't know you had at your disposal. It's only 250 pages, and you can then quickly advance to something C++11-specific, but IMO it's a worthwhile step.
Oct
28
comment How to make the switch to C++11?
I like how you are sarcastic about him not using variadic templates anytime soon, but I think missing uniform initialization is missing something really important for everyday programming.
Oct
28
comment How to make the switch to C++11?
I would update if it wasn't for std::for_each(). When you have lambda, it's certainly better than a traditional for loop. With a range-based for loop that might not be the case, but you didn't write "range-based for loop".
Oct
28
revised Pure C++ for iOS apps
if you want to use C++, capitalization matters!
Oct
21
awarded  Popular Question
Sep
29
comment Using T[1] instead of T for functions overloaded for T(&)[N]
@Lars: Isn't there a std::is_pod<> in C++11? (I am not sure, since I haven't played with C++11 yet.)
Sep
28
revised Using T[1] instead of T for functions overloaded for T(&)[N]
added 3 characters in body
Sep
27
comment When to use C over C++, and C++ over C?
@Buttons: It was you who made a claim ("C++ needs more memory"), so it should be you who backs that up. And, no, I am not claiming that C++ needs less memory. What I'm saying is that features cost, no matter whether the compiler implements them for you (virtual functions) or you do them yourself (array of function pointers).
Sep
27
comment When to use C over C++, and C++ over C?
@Buttons: No, usually they don't. They do automate some tedious tasks, though, like resource cleanup, or dynamic dispatch. If you are short of resources, why would you dismiss this advantage? I agree, though, that it is helpful to know the general "resource costs" associated with certain C++ features (for example, virtual functions) and make your decisions about which ones to employ when and where based on that knowledge.
Sep
27
comment When to use C over C++, and C++ over C?
@Buttons: Why would that be a reason to pick C over C++?
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++?