Name: Anonymous 2012-05-10 13:47
Why do people hate C++? It's a good language.
Comparing to C:
- C++ has RAII, C has not
- C++ supports OOP, C does not
- C programs are full of segfaults and bufferoverflows, C++ programs are not
Comparing to Java
- Java has GC, GC is shit, C++ doesn't have GC
- C++ objects can have destructor
- C++ fast, Java is crap
Comparing to Python
- Both are high level
- Python is very slow, C++ is fast
- Python has dynamic type system, C++ has static type system; dynamic type system causes many bugs, static type system prevents many bugs
Comparing to List:
- Lisp is shit, C++ is not
- GC is shit
Comparing to Haskell
- Haskell is toy language, C++ is not
Overall, C++ is superior language in most cases. In some cases you'd prefer Python, when you need slow program, or Lisp when you need shit program. But in most cases you prefer C++.
Comparing to C:
- C++ has RAII, C has not
- C++ supports OOP, C does not
- C programs are full of segfaults and bufferoverflows, C++ programs are not
Comparing to Java
- Java has GC, GC is shit, C++ doesn't have GC
- C++ objects can have destructor
- C++ fast, Java is crap
Comparing to Python
- Both are high level
- Python is very slow, C++ is fast
- Python has dynamic type system, C++ has static type system; dynamic type system causes many bugs, static type system prevents many bugs
Comparing to List:
- Lisp is shit, C++ is not
- GC is shit
Comparing to Haskell
- Haskell is toy language, C++ is not
Overall, C++ is superior language in most cases. In some cases you'd prefer Python, when you need slow program, or Lisp when you need shit program. But in most cases you prefer C++.