To read all comments associated with this story, please click here.
Bad C++ programmers get the weird idea that they must use all the latest buzzwords and create their own form of spaghetti using every possible bit of the language, just because it is there. While C++ isn't the prettiest of languages, and isn't "ideal" for everything (no language is "ideal" for everything) it can actually help make incredibly large projects very readable and manageable, *in the right hands* but it can also be abused and used to create the mess you're accusing it of always creating.
The reality is that any language you can write anything beyond a few lines and more than one source code file can be used and abused to create the mess you are blaming C++ for creating: an unmaintainable, messy large project. C++ is very well suited for things of very large scale, and is great for general applications as well as for systems programming, because it allows you to choose what level of performance you get out of it, or, if you wish, you can use some of the features C doesn't have to create reference counted objects that remove the need for the garbage collection (and all the weird and often random performance side-effects it has on the application) and actually make things much easier to manage. Really, it matters how well you know the libraries as well as the language, and your discipline, just like any other language.
Thus, your arguments are quite weak, and you have no basis making such judgments about something you are clearly incapable of using properly yourself.
"...if you wish, you can use some of the features C doesn't have to create reference counted objects that remove the need for the garbage collection (and all the weird and often random performance side-effects it has on the application) and actually make things much easier to manage."
reference count implies garbage collection?
i guess that all those weird side-effects are because you can't know when the garbage collector will run and garbage collectors keeps gathering memories untill suddenly they start the collection.
but with reference count you can have deterministic memory deallocation, just every time when count goes to zero. Is this called "garbage collection" too?







Member since:
C++ is the worst thing to happen to computer science.
Too much complexity for marginal benefit.
Bjarne took a beautiful, *small* programming language and turned it into a bloated nightmare that makes unmanageable any sufficiently large profect.
C++ certainly has no business in application programming, and it's case for systems programming is weak.