4 ms·
For me, python is the closest thing to writing pseudocode that functions. Every time I have the instinct to gloss over a thing when writing it down (because it
by yunwal 1y ago
For me, python is the closest thing to writing pseudocode that functions. Every time I have the instinct to gloss over a thing when writing it down (because it feels obvious in my head), it turns out that python has an intuitive abstraction for it.
Coming from a mathy background I found it incredibly satisfying, although I’ve come around to other languages since.
- odyssey7 1y agoAs 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.