Page 2 of 2

Re:Favorite Programming Language

Posted: Wed Sep 03, 2003 8:50 pm
by sonneveld
Pype.Clicker wrote: C++ simpler than C !?

well, we must either not have the same knowledge of both language or not have the same definition of "simple" ...
I think, as long as you take advantage of the STL, it might makes things such as lists much easier to handle. (and triple your compilation time to boot!)

- Nick

Re:Favorite Programming Language

Posted: Thu Sep 04, 2003 2:02 am
by mystran
Nick Sonneveld wrote: I think, as long as you take advantage of the STL, it might makes things such as lists much easier to handle. (and triple your compilation time to boot!)
I'd say C is much more simple. If you understand C++, it will make some things easier, but I wouldn't say more simple.

C is a very clean language. You have a small set of concepts. C++ has a huge set of things you must know to use it to it's full capability. Because of things like implicit constructors, you actually need to care about much more than in almost any language.

I'm a little divided on STL containers. They are useful yes, but for things like simple linked-list writing your own might be easier, since STL containers don't store objects, but copies of them, which means that if you want to store noncopyable objects into them, you have to use smart-pointers or something.

Sometimes, C++ does allow more simple code, but the language itself is NOT simple. Of the popular languages today, I'd dare to say C++ is the most complicated one.