Reddit Reddit reviews C++ Gotchas: Avoiding Common Problems in Coding and Design

We found 3 Reddit comments about C++ Gotchas: Avoiding Common Problems in Coding and Design. Here are the top ones, ranked by their Reddit score.

Computers & Technology
Books
Computer Programming
Microsoft C & C++ Windows Programming
Microsoft Programming
C++ Gotchas: Avoiding Common Problems in Coding and Design
Check price on Amazon

3 Reddit comments about C++ Gotchas: Avoiding Common Problems in Coding and Design:

u/esbio · 19 pointsr/Python

very, very few "gotchas". In general, in python what you read is what is meant, and nothing else. The defaults are correct and well thought. I can count 2 or 3 gotchas in python. In C++ there's a book dedicated to it.

u/cyancynic · 9 pointsr/programming

Ah, no. We also dislike its link model that makes it impossible to ship binaries without asking what compiler they'll be using to develop with. The need to ship template libraries as source code is sometimes a downer. The wacky feature interactions that are sometimes surprising. The way a + b can end up being a few thousand instructions instead of the half dozen one might expect through casual observance. The way you have to read all the code to know what any one line of code will do because you can change the meanings of the operators. The automatic object construction and type conversion that runs rampant and sometimes kills performance. The ugly syntax. The crummy type system that hinders more than helps. The truly obnoxious gratuitous overloading of already common terms like static to mean completely new things. The fragile base class problem and the annoyingly low tech dispatch system that allows it to occur. The overall lack of cohesion in vision. Everything listed in this book....

u/yogthos · 1 pointr/programming

>Simply not true.

Maybe not in your little insulated corner of the world, but do a cursory google or check stack overflow to see the staggering amount of problems people have working in C++. Of course according to you, they must be all incompetent idiots who haven't invested years of their lives so that they can operate the language properly.

>Anonymous classes are way more unreadable than c++ local variables.

Something you clearly don't realize is that they don't need to be anoynmous classes.

>It's not. If you believe it is, show me one 'quirk'.

it's so bad there's a whole fucking book on the topic

>That's a respected personal opinion. But, it is personal. That doesn't mean C++ is not better than Java

But the opinion is based on the fact that C++ is a more complex language than Java, which does not offer enough benefits to counteract the complexity that it introduces.

Saying, that a person with years of experience writing C++, and who restricts themselves to a small subset of C++, can write clean code is not proof that the language is easy to use I'm afraid.