And don't get me wrong - I think C++ is the most powerful language out there on the right hands - it just feels to require a lifetime of learning to became productive on it.
Nobody Understands C++: Intro (2007)
31–40 of 53 posts
Re: Nobody Understands C++: Intro (2007)
#32Earlier quoted context omitted.
> I realized all this class-ification effort was pure waste, since most of it would never be reused. I don't think this is a valid take. Classes are not about reuse at all. They are about encapsulation and specifying types/providing interfaces. > Same with all the idiomatic conversions. What's your complain about idiomatic conversions? > Don't get me started on boost. Why is Boost, or any library at all, relevant in…
> Why is Boost, or any library at all, relevant in a discussion about C++? It’s what the article uses to make its point. Did you read it?
Re: Nobody Understands C++: Intro (2007)
#33TBH, C++ has changed so much that any opinion from 2007 isn't worth much today, and that applies no matter if you think C++ got better or worse since then ;)
It is still valid.. it would be invalid if C++ removed old features, but it doesn't.
Re: Nobody Understands C++: Intro (2007)
#34I find today's C++ extremely challenging to pick up speed for someone coming from let's say, Java. Smart pointers, pointer/references, rvalue reference, copy/move semantics, (perfect) forwarding, constructors, and how all that interacts with templates. It's just so unwieldy complex. It takes me hours to write something that would take less than a minute in Java even though I have experience with plain C. The worst th…
Re: Nobody Understands C++: Intro (2007)
#35I find today's C++ extremely challenging to pick up speed for someone coming from let's say, Java. Smart pointers, pointer/references, rvalue reference, copy/move semantics, (perfect) forwarding, constructors, and how all that interacts with templates. It's just so unwieldy complex. It takes me hours to write something that would take less than a minute in Java even though I have experience with plain C. The worst th…
Re: Nobody Understands C++: Intro (2007)
#36> The comment in question begins “My take on C++ is that the best programs only use a fraction of the features.” The commenter further states that he is weary of operator overloading and templates. > In my experience, people who make comments like the above tend to be people who think they are C++ experts but who are actually only novices. I do not know the commenter personally, so I’m not trying to say anything abou…
In my opinion there are two C++'s: 1) the version used by people writing things like the STL/Boost 2) the version used by people writing apps. A huge amount of the updates to the language are to make the lives of people in category 1 easier. The people who fall into category 2 really don't need to use all the template headachery that the language allows. They can if they want, but they probably don't have to. I've no…
Re: Nobody Understands C++: Intro (2007)
#37Re: Nobody Understands C++: Intro (2007)
#38> The comment in question begins “My take on C++ is that the best programs only use a fraction of the features.” The commenter further states that he is weary of operator overloading and templates. > In my experience, people who make comments like the above tend to be people who think they are C++ experts but who are actually only novices. I do not know the commenter personally, so I’m not trying to say anything abou…
> get just as much done with high quality C in half the time. Bullshit. C++ may have plenty of warts, and sometimes people go way OTT with templates (90% of Boost), but there's no way you're writing code as fast in C as C++ unless it involves no string manipulation, pointers, containers, etc. String manipulation alone is so awful in C that there's no way you're right. But throw in smart pointers, collections, JSON, r…
Then you opt in to certain features like templates or operator overloading based on your bike shedding level.
Re: Nobody Understands C++: Intro (2007)
#39If C++ was a human language, then it would be like every new piece of writing consisted of brand-new nouns, verbs, adjectives and it's own syntax and grammar.
Re: Nobody Understands C++: Intro (2007)
#40Earlier quoted context omitted.
> I realized all this class-ification effort was pure waste, since most of it would never be reused. I don't think this is a valid take. Classes are not about reuse at all. They are about encapsulation and specifying types/providing interfaces. > Same with all the idiomatic conversions. What's your complain about idiomatic conversions? > Don't get me started on boost. Why is Boost, or any library at all, relevant in…
Class composition is about reuse. Class inheritance isn't.