0
Problems of C++
I really like C++! But I didnt hear much about the downsides. This Thread is for the dark side of a beautiful language and to inform people like me, so they get the whole package. Thank you:)
3 Réponses
+ 6
As much as I enjoy C++ programming, it does have its share of problems.
C++ uses a weird admixture of low-level and object-oriented programming. This means that classes written in C++ are not 100% secure. Procedural programming can be dangerous if the programmer doesn't know what he's doing, and classes that mismanage dynamic data structures can cause a lot of bloat from memory leaks.
It's also got some slick modern features, but with that comes weird backwards compatibility and outdated functions. The language is very large, and it keeps getting larger thanks to the fact that newer versions of C++ don't replace older versions - they're instead applied right on top of older versions of the language, like layers on an onion.
C++ is also very versatile, meaning that people can write code their own way. This is not necessarily a bad thing, but it comes with a curse: it's very easy to write bad code in C++ because of the sheer number of ways you can do things in it. It's like having a swiss army knife, except sometimes people try to use the fish scaler instead of the can opener to open a can, or use the screwdriver to cut a piece of string.
+ 6
C++ is the most powerful language I've seen yet (except platform-specific machine language and assembly). It's like nuclear energy. If the leader of a nuclear superpower is ignorant, nuclear wars are to destroy the Earth.
Similarly, if the all-powerful C++ falls in the hand of an ignorant programmer and s/he uses pointers, memory & other low-level stuff, the result will be like 😕😲😥☹️🙁😖😞😟😤😢😭😦😧😨😩😰😱😳🤪😵😡💀☠️
+ 1
C++ is pretty Complicated and has only a little memory management and its syntactically strict on the downside