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

> The real world is often NOT hierarchical, or at least may easily change to not be hierarchical in the future.

The real world is an undifferentiated unified whole, but you can't actually work with it without dividing it up and labelling/modelling it, and most useful models have a heirarchical structure. OTOH, they usually aren't a single-inheritance heirarchies, and most OOP languages either handle multiple inheritance poorly or not at all.



OOP is lousy as an ontologicsal model of the stuff making up the real world. But that doesn't make it not useful for building designed systems.


True, but that doesn't imply one should turn most IF statements into polymorphism, or other OOP constructs. OOP is one of multiple tools in our toolbox.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: