Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A useful rule is not to extend a class you don't own. This is usually taken to mean don't extend a class from a third party library. But it should also mean classes that are shared by multiple developers. In that case, compose, don't inherit.


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

Search: