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

Coming up with good examples of inheritance is hard. Instead of teaching with bad examples, that should have been a warning that inheritance should be much less commonly used.


>Instead of teaching with bad examples, that should have been a warning that inheritance should be much less commonly used.

This. I think the most of the tech industry would benefit from this lesson. If it's beneficial in your situation, use it, otherwise don't.

90% of programming is linear instructions, one after the other. It's not that complicated.




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

Search: