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

> easy to take another class and copy it with small modifications but not mess it up for anyone else (inheritance)

That sounds like a recipe for disaster though, as it generally makes code much harder to read.



Agree, inheritance tends to be overused when programmers try to get too clever. The flatter the class hierarchy the better




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

Search: