3 ms·
C++ _easily_ has many if not more quriks than JS. There have been over a half dozen major revisions of the language since ~1988. Each one added in sometimes d
by qbasic_forever 4y ago
C++ _easily_ has many if not more quriks than JS. There have been over a half dozen major revisions of the language since ~1988. Each one added in sometimes dramatic ways new syntax or idioms that required major relearning. If you learned and used C++ in 1995 you would be a liability if thrown into a modern 2015+ C++ codebase (well a liability until you learn all the new quirks and changes in the language).
You might drop into a C++ codebase from 1990 that looks more like C (it was made to be mostly backwards compatible after all), then see a codebase from 1999 that's chock full of the most cryptic template metaprogramming imagingable and complete spaghetti structure of OO "design patterns", and then see a codebase from 2010 making much more heavy use of the updated standard library and a functional style of programming.
The sheer scope of C++ as a language is frightening as it requires quite deep knowledge of the parts you're using. Sometimes even deep knowledge of the history and rationale for parts of the language you're using existing. And if you screw something up you might silently introduce a major security hole, OS crash, or worse--the language gives you a ton of rope to hang yourself from.
Oh and there's no standard build system, no standard package manager, no standard project layout, no standard for code formatting, documentation, etc. Everyone has their own bespoke solutions that make the JS world look amazing in contrast.
- oofbey 4y agoTrue, and, C++ is popular in that people use it. But I don't think many people really like it.