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

So don't use inheritance. Seriously. Inheritance is annoying, but unnecessary. I generally avoid it. You can still use other parts of OO.



Good advice, but it doesn't help when one's coding in a larger system not just written by oneself. Then there's operator overloading; you can't trust anything to be doing what it suggests in an unknown, or large, codebase. Code readability goes down the pan if too much is hidden by mis-used OO techniques.


Not all OO languages allow operator overloading.




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

Search: