3 ms·
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, avoid
by odyssey7 1y ago
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.
- dapperdrake 1y agoOOP, 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.
- aryehof 1y agoWell it’s not about math. Stick to lines of code, functions and modules for that. Use it for abstract data types, frameworks and modeling.
- odyssey7 1y agoYou’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.
- fastasucan 1y agoIts quite easy to avoid OOP though.
- odyssey7 1y agoThe only reason I would use Python is for its specialized AI/ML frameworks, and unfortunately those force you to go with OOP.