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

As a mathy person myself, I find the OOP leaning difficult to think about. Better equational reasoning, better lambdas, fewer side effects to worry about, avoiding mutation so that I can define something and still know what it is later during runtime, those are what help me think clearly. To me OOP is about the furthest paradigm from math that I’ve used.


OOP, especially the modern take, feels pretty far from just about anything.

Inheritence should have stayed esoteric. Composition is closer to reality.

Relations and functions and values are way closer to applications than OOP seems to be.


Well it’s not about math. Stick to lines of code, functions and modules for that. Use it for abstract data types, frameworks and modeling.


You’re right, it’s not good for math, but unfortunately we have the legacy of AI / ML being entrenched into that ecosystem, with no clear leaders as alternatives.


Its quite easy to avoid OOP though.


The only reason I would use Python is for its specialized AI/ML frameworks, and unfortunately those force you to go with OOP.




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

Search: