News for hackers. Stuff that matters.
Re:GCC switches from C to C++ by oh_sigh on Wednesday August 15, 2012 @09:14PM (#4389375)
Oh okay. I think I'm going to trust the guy who wrote the linux kernel over...duaneb.
Re:GCC switches from C to C++ by duaneb on Wednesday August 15, 2012 @11:21PM (#4389762)
No, he has good points, but doesn't really rely on logic so much as vitriolic humor. For example:

http://forum.gwan.com/index.php?p=/discussion/587/its-bs-bec...

Basically, his entire argument is the slippery slope fallacy based on assumptions that may never occur. Plenty of great software is written in C++, even using STL, that doesn't lead to software that is any more difficult to maintain than the equivalent C program. For one thing, refactoring due to design change is a pain in the ass with or without objects. He also doesn't address the fact that polymorphism is very unwieldy in C. While it's very defensible to NOT use C++, I don't think that saying that "C is the only sane language" is fair. That, or Apple, Google, Microsoft, Oracle, and Facebook are full of people who are barking mad.

However, in an environment like Linux and git where code practices may be less restrictive than a corporate or authoritarian environment, the natural restrictions of C (i.e. lack of easy-to-abuse features) may seem like a feature in itself.

Re:GCC switches from C to C++ by oh_sigh on Thursday August 16, 2012 @03:33PM (#4393219)
Then why not write a rebuttal and ask for his feedback? It's impossible to anticipate every possible counter to an argument, and it would be prohibitive to list and rebut them all within a single message.

> Plenty of great software is written in C++, even using STL, that doesn't lead to software that is any more difficult to maintain than the equivalent C program.

I don't deny that great software is written in C++, but what is your evidence that C and C++ have the same maintenance burden.