5 ms·
IMHO JavaScript is neither a good OOP language not a good Functional language.
by isanjay 3y ago
IMHO JavaScript is neither a good OOP language not a good Functional language.
- artyom 3y agoUnfortunately I think the opposite. JS was a great prototype-based language, but very few understood those and tried to fit it into functional or OOP mindsets. When they started talks about adding classes to the spec I knew I had to run away.
- yamtaddle 3y ago> JS was a great prototype-based language Maybe it's just me, but everything distinctive about prototypal OO falls firmly in the category of "please never actually use this in a codebase I have to work in".
- artyom 3y agoWell, I agree if your experience was around codebases that tried to fit JS in the OOP category.
- 0x457 3y agoWell, then you don't think the opposite. JS is a bad OOP or functional language, but a good prototype-based language. Bad thing that no one wants such language.
- artyom 3y agoI can't disagree with the "no one wants" part unfortunately, no matter how good my counter-arguments can be.
- 0x457 3y agoDon't blame you. Hard to disagree with that. Ever since JavaScript became important (famous web 2.0 yay) everything in the JS ecosystem was about making it more like Java style OOP and recently more functional style. There were so many shims to emulate that style of OOP.