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

FWIW, I think the rule about classes being either abstract (like interfaces) or final makes sense. Inheritance is the biggest OOP anti-pattern, producing most headache and bugs. It cannot be completely removed from an OO language like PHP, but can be nicely replaced with composition using interfaces / abstract classes and traits.


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

Search: