Why Inheritance Doesn’t Scale(gal-segal.com)

submitted by cornetocorneto(135) 27 days, 8 hours ago

OO Programmer tend to use inheritance as a way of code reuse, a best practice and for better maintainability. I am no exception. But there are times where inheritance can become your worst enemy, and instead of making your life easier, complicate stuff to the point you are lost.

1 comment |category: |Views: 379

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by dpetersondpeterson(3582) 26 days, 9 hours ago 0

I'd say that the title is a bit misleading, it's really "poor design doesn't scale". There's a reason that object-oriented programming isn't just about inheritance. ;-)
I like the article, you've illustrated the problems that come about when programmers who only know about inheritance set out to build a complex system. It's important to understand how composition can reduce complexity, and allow for better reuse of the objects you've created.

Reply

information Login or create an account to comment on this story