5 ms·
It seems to be that people seem to apply a higher bar to being a master of C++ than they do to other languages. Yes, it's possible to come up with "gotcha" que
by Negitivefrags 8y ago
It seems to be that people seem to apply a higher bar to being a master of C++ than they do to other languages.
Yes, it's possible to come up with "gotcha" questions that are hard to answer for C++. There are dark corners of any language, C++ has more than many to be sure.
Yet it seems that C++ detractors love to roam around in these dark corners far more often than actual serious users of the language do.
It's very, very rare that I have run into a misunderstanding of the language that has caused a bug. What you almost always get is a compile error, which in fact, is exactly what you want.
It's not the new features causing the bugs, it's the old ones.
It's uninitialised variables, dangling pointers, undefined behavior, etc etc etc.
And guess what, it's the new C++ features that are making those kinds of problems rarer and rarer as time goes on. It's starting to get pretty damn hard to use-after-free or leak memory.
- pjmlp 8y agoI love to bring up Python examples, as it is thought of being a beginners friendly language, yet many seem unaware how big the language, standard library and behaviour changes across releases actually are.
- stochastic_monk 8y agoMy biggest issue with python is distribution: it’s a much worse headache to try to ensure your product works on other people’s machines (Python versions, dependencies, and anything with Cython just makes things worse) than just requiring a C++14-compliant compiler.
- acqq 8y agoMoreover the sources written for versions >= 3 are serioosly not guaranteed to work on different 3.x versions.
- itcheeze 8y agoYeah, I'm learning Python now and was working through the book Learning Python which covers Python 2 and 3 there are plenty of differences to trip you up.