4 ms·
Your freaking enormous ball of mud accreted some more mud. Quelle surprise. It's probably doing it by sheer gravitational attraction at this point. I do not thi
by jerf 15y ago
Your freaking enormous ball of mud accreted some more mud. Quelle surprise. It's probably doing it by sheer gravitational attraction at this point. I do not think that removes the need for languages that have the capabilities of C++, yet aren't freaking enormous balls of mud.
The reader may mentally replace my use of the word "freaking" with other choice terms at his or her discretion.
- dkarl 15y agoI agree. I think people who know C++ and people who do not know C++ will have very different attitudes toward the evolution of C++. I sunk a lot of effort into C++ when it was the best game in town for a lot of things, so I'm excited to see one of the sharpest tools in my toolbox get a little sharper. If you must write C++ code (or C code, since it's easier to write C++ instead) then by all means you should learn C++ in all its gory mud-ballness, and you will have an extremely powerful weapon at your disposal which is much easier and safer to wield than you might imagine. On the other hand, I think anyone who doesn't already know C++ should avoid the investment of learning it if possible, and we should welcome new languages that relieve more and more people of that burden.
- bitcracker 15y ago> anyone who doesn't already know C++ should avoid the investment of learning it ACK. I know many languages, and my advice after using C++ for several years is: Don't dare try to do everything in C++. Use C++ only when it is absolutely necessary. Just compare this C++ code http://shootout.alioth.debian.org/u32/program.php?test=regexdna&lang=gpp&id=4 http://shootout.alioth.debian.org/u32/program.php?test=regex... with this equivalent Javascript code to understand immediately what I mean: http://shootout.alioth.debian.org/u32/benchmark.php?test=regexdna&lang=v8 http://shootout.alioth.debian.org/u32/benchmark.php?test=reg... It's funny that this V8 code runs even 4.5 times faster (!) than C++ :) http://shootout.alioth.debian.org/u32/performance.php?test=regexdna http://shootout.alioth.debian.org/u32/performance.php?test=r...
- javadyan 15y agoAny useful language is a freaking enormous ball of mud. Bjarne said: there are only two kinds of languages - the ones people complain about and the ones nobody uses.
- arctangent 15y agoI can't remember the source, but I'm sure I read somewhere that programming languages are either too large or too small...
- lmkg 15y agoStroustrup is right, but that doesn't prove your point. Every language will have detractors, but not every language will be the target of every particular complaint. Lua, for example, is a useful language and it has largely avoided being a ball of mud. Naturally, that minimalism brings its own set of issues and complaints. But the point is, you don't need to be as much of a ball of mud as C++ in order to be useful or successful. I think a lot of language partisans, and C++ partisans in particular, point to Stroustrup's quote as an excuse for their language's warts. It's true that no language can ever be perfect, but that doesn't mean that all complaints are without merit and unworthy of attention and consideration.
- jerf 15y agoI can not think of a cognitively bigger language than C++. And I mean language, not library set or anything like that, but literally, what the syntactic constructs are, how they are defined, and in particular how they end up interacting with each other. I often wonder how many of the C++ defenders could actually answer detailed questions about it, or how much of the code they write would actually deeply, deeply surprise them with what memory allocation bugs are lurking, how much indirection there really is, or how many implicit copies of things they are making if they really took the time to step through the assembly language version. Or how many of them could bang out a decently accurate summary of the new official memory model, let alone how it might interact with all of the other features of C++. Or for real bonus points, successfully use it without introducing enormous numbers of things that are, technically, errors, but it so happens you never run into them at runtime. Non-zero, I'm sure, but I bet single-digit percentages, tops. Except that last one, which I'd put money on sub-1%. What are the odds that C++, as a fairly extreme outlier, is actually closer to optimal for the general purpose tasks it is used for than all the other languages?