Linked by Thom Holwerda on Mon 3rd Sep 2012 20:46 UTC, submitted by MOS6510
General Development I like this one: "By definition, a program is an entity that is run by the computer. It talks directly to the CPU and the OS. Code that does not talk directly to the CPU and the OS, but is instead run by some other program that does talk directly to the CPU and the OS, is not a program; it's a script." Here's the other eleven.
Permalink for comment 533772
To read all comments associated with this story, please click here.
RE[4]: C++
by kwan_e on Tue 4th Sep 2012 08:09 UTC in reply to "RE[3]: C++"
kwan_e
Member since:
2007-02-18

Except the STL is almost entirely duplicate functionality. list and map are the only new containers. Everything else is either a duplicate or a minor change away from being a duplicate.


Set, queue, deque, unordered (hash), heap. If by "minor change" you mean lack of manual memory management, then yeah. But I would call that an improvement.

Bunch of standard algorithms. Smart pointers. Concurrency.

Let's not forget that C++ allows things like Boost to happen.

Vectors don't really make life easier. And RAII is only useful if you're doing OO.


So you like having to explicitly allocate and deallocate memory? Even with C99 variable length arrays, you can't easily push or pop or insert or delete items or resize without the possibility of introducing bugs. Then you also have to manually keep track of the length of the array in case you don't use the whole thing.

The C I/O functions work at least as well as C++'s, even on objects.


And?

Honestly, I think Qt is crazy, but most GUI programming is.


Then in no way can you say anything about C++. C++ is designed for complicated things, like GUI programming for example.

Reply Parent Score: 4