TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Is Object Oriented Programming Too Complicated?

1 pointsby DavidBishopover 14 years ago

2 comments

timrobinsonover 14 years ago
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: <a href="http://en.wikipedia.org/wiki/Fragile_base_class" rel="nofollow">http://en.wikipedia.org/wiki/Fragile_base_class</a>
评论 #2170912 未加载
arctangentover 14 years ago
I think OOP is easy, so long as the system you are modelling can in fact be broken down sensibly into distinguishable objects. However, a lot of people try to use an OOP approach when this is not appropriate and end up getting into a bit of a mess.