If by object-oriented you mean that JavaScript uses objects a lot, then I cannot disagree. But to me it implies
Classes are the blueprint
Objects are instances of classes
Inheritance is class → class
Behavior is defined inside classes
But none of that is necessary to write code in JavaScript. That’s why I think of it as multi paradigm. You are welcome to pick the paradigm you like best and call it the “inherent” paradigm but I’m not sure it’s an objective truth.
Either way, I can see that you have an informed opinion and I can understand why you would hold it.
Been around the block. Classes have little to do with it honestly. It’s just the method of creating your object instances.
Inheritance, polymorphism, and encapsulation are the basic foundations for OO languages. JS ticks all 3 of those before the class syntax was introduced.
Hate to see programmers throw tools out the window because they’ve only been exposed to the cons or they are listening to some well intentioned but less informed opinions about the matter.
This whole OOP vs Functional debate highlights this. Someone convinced a whole generation of devs that OO is evil so these debates keep popping up.
Keep your code simple, optimize when appropriate, and avoid premature abstractulation and OO code works very well and is easy to reason about.
View all comments
Show parent comment
2
u/doxxed-chris Mar 23 '26
If by object-oriented you mean that JavaScript uses objects a lot, then I cannot disagree. But to me it implies
But none of that is necessary to write code in JavaScript. That’s why I think of it as multi paradigm. You are welcome to pick the paradigm you like best and call it the “inherent” paradigm but I’m not sure it’s an objective truth.
Either way, I can see that you have an informed opinion and I can understand why you would hold it.