Linked by David Adams on Sat 11th Oct 2008 16:48 UTC, submitted by IndigoJo
General Development Eric Raymond is working on an essay, putatively titled "Why C++ Is Not My Favorite Programming Language". In his announcement, he calls it "an overcomplexity generator", "bloated, obfuscated, unwieldy, rigid, and brittle", and alleges that these characteristics appear in C++ applications also. I contend that many of the complaints about C++ are petty or are aimed at specific libraries or poor documentation and that many of the features commonly regarded as unnecessary (and excluded from intended replacements) are, in fact, highly useful. C++: the Ugly Useful Programming Language
Permalink for comment 333407
To read all comments associated with this story, please click here.
Member since:

Where many other languages add e.g. sort algorithms to list classes (which is not really a reusable approach), STL provides generic algorithms for every container that provides iterators.

To be fair, you CANNOT use std::sort for every container that provides iterators - only for those that provide *random access* iterators.

In fact, I believe that the whole idea of 'generic' algorithms that apply to anything is somewhat moot - the only useful algorithms are those dealing with random access containers. And within those, only sorts and bounds are really important (about 5 total).

In fact, if you would just glue those as std::vector, std::deque methods, you would lose only a little...

While I really like C++, I am not huge believer into STL. IMO, Stepanov nearly killed the language...

Reply Parent Score: 2