Hacker News new | past | comments | ask | show | jobs | submit login

Implementation inheritance is absolutely no problem within a project or component that entirely controls both base and derived classes, where it amounts to, simply, a notational convenience. It is not, then, a "good OO design"; but there is nothing sacred about OO. Ultimately, any combination of well-specified mechanisms may be correctly used to achieve an elegant design, regardless of formal architectural conventions. The reason a feature was introduced into a language has no necessary connection to reasons for using it.

Implementation inheritance is a problem when crossing organizational boundaries, as reasonable changes upstream can impact correctness downstream.

Ultimately, there is no substitute for taste. Substituting fetishism produces unfortunate results.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: