News for hackers. Stuff that matters.
Re:C Craft by silentbicycle on Friday December 18, 2009 @12:58PM (#1003563)
Working on any reasonably large project in a (mainstream) OO language makes dealing with someone's code that misuses inheritance incredibly likely, and design errors in class hierarchies can inflict their problems on everything they touch. OO has been sold as a tool to reduce complexity, but can become a major source of it as projects develop.

Also, reading code with several levels of inheritance (more than three, perhaps) means dealing with several levels of spaghetti code - the code becomes a mess of "this does that, but no, wait, it doesn't anymore here, though here it does that except it does this first."

Re:C Craft by moron4hire on Friday December 18, 2009 @02:11PM (#1003724)
So design errors and language feature misuse are less likely in procedural languages like C? Come on, that's ridiculous. You can't judge a language by the people who misuse it, otherwise nobody would be using JavaScript and HTML these days.

Sometimes complexity is intractable. There are no silver bullets.

Re:C Craft by silentbicycle on Friday December 18, 2009 @02:36PM (#1003774)
Sometimes complexity is intractable, sure, but I'd argue that on the balance, inheritance makes it worse. Programming to object interfaces (whether or not they're known at compile time) brings most of the same benefits without having to pigeonhole everything into trees and potentially rewrite tons of code when the design changes.