News for hackers. Stuff that matters.
Re:Is Object Oriented Programming Too Complicated? by timrobinson on Wednesday February 02, 2011 @11:28AM (#2170798)
Inheritance isn't the only way to re-use code. Using inheritance won't solve your problems, and it tends to give you new ones: http://en.wikipedia.org/wiki/Fragile_base_class
Re:Is Object Oriented Programming Too Complicated? by prodigal_erik on Wednesday February 02, 2011 @11:50AM (#2170912)
"But if you write code that doesn't change the existing system, you simply test the additions" boils down to the open/closed principle. It's much safer to create a new class (often by inheritance) than to modify the guts of an existing class that already has dependencies.