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
Thread beginning with comment 333428
To view parent comment, click here.
To read all comments associated with this story, please click here.
luzr
Member since:
2005-11-20

Problems will start if there is anything else than single Color and Text attributes. What about:


class Paper
{
private:
std::vector<std::string> Text;
};


and the existing code will still work, but will be much slower than Java.

But that is not a problem of C++ core language, but STL...

Reply Parent Score: 1

pcunite Member since:
2008-08-26

What about:
std::vector<std::string> Text;


Yes that would allow for multiple Text types quite simply. Gains in STL will help performance. Of course one could use their own custom vector class. I show this to illustrate how easy C++ is. I use a similar class design to handle a complex object that has many forms of recursiveness in it. Using SQLite, and Borland's VCL has made programming the windows platform child's play. I plan to replace the VCL with QT or wxWidgets at a later date if needed.

Reply Parent Score: 2