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

It took me so long to beat the following into my team: Inheritance and instantiation by default is a no-no. Use instances when state would be useful to the process, and use Inheritance when you have a lot of overlap between two processes/concepts and want to simplify/unify the code base.

Application of inheritance is a reaction to the current state of the code, not a foundation you start with.



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

Search: