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

How do you define object-oriented programming? From my perspective the very core of it is stateful objects with encapsulation and methods on those objects that pretty much always are not pure. If you just start treating objects like collections of functions, I don't really see how that's OOP. As far as I remember, it has been a little bit since I've used OOP everyday, pretty much every facet of the paradigm is centered around mutating state. You can certainly commingle OOP and functional code, but they simply aren't compatible paradigms.


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

Search: