4 ms·
I'm sad the article doesn't have give really good and substantial reasons for c++'s continued popularity (whether c++ "is back" or "never left" is a judgment ca
by joe_the_user 14y ago
I'm sad the article doesn't have give really good and substantial reasons for c++'s continued popularity (whether c++ "is back" or "never left" is a judgment call).
I would say that the basic reason is we still need systems that both customize their low-level (literal and metaphorical) bits and use large scale, powerful abstractions. Indeed, it worth remember that very high-level abstract systems (such as databases) often wind-up simultaneously crunching lots of data in unique ways and thus needs *particular" sorts of low-level operations along with a variety of high-level constructs.
C++ has succeeded as a tool allowing you to do nearly any kind of abstraction up from the low-level operations implicit in c. And given that this is a broad mandate, the language comes out "too big" seeming, "too wordy" seeming and so forth. Not a nice language but efforts targeted to a similar area have wound-up making similar compromises and thus having equivalent problems (see the D Language - not that its failure but that it seems to have failed to be lots better than c++). C++ can be "the best language" (for its purpose) without being "a good language" (without being a pleasant or sane-seeming language).
As jandrewrogers said, (at least the best) c++ projects use less than the entire language and use it according to their needs. Merely having good parts is not enough to make a language good but until we have a good alternative to c++ or until we have garbage collectors and virtual machines that are guaranteed to work best for any significant system whatsoever (good luck with that), c++ will have a place.
- kruipen 14y agoAll your comments about practical values of C++ are good. But I would like to point to something else: C++ is a smart, deep language. I mean this in a sense that genuinely brilliant people get real intellectual satisfaction from inventing and discovering C++ idioms and techniques. To me C++ templates rival aspects of Haskell in the sheer expressiveness of a beautifully simple concept.
- WalterBright 14y agoAs you can write Fortran in C (I've done it), it misses the point of D to view it through the lense of being a marginally improved C++. D is a substantially different language with a very different focus, and different paradigms.