News for hackers. Stuff that matters.
Re:Class Hierarchies? Don't Do That by SideburnsOfDoom on Monday March 31, 2014 @04:14AM (#7500280)
> For me, JS seems to work best when treated like a poor man's functional language

I agree.

Others have replied (rightly) that under the hood, JavaScript has a lot of objects. Functions are objects. So in that sense I am wrong: JavaScript is an OO language.

However the experience of programming well in JavaScript feels more like using a functional language than using a OO language. Good JS has a lot more to do with thing such as passing functions to functions or understanding how " fn().then(fn()) " works, than it relies on class hierarchies, protypical or classical.

There are no comments on this comment yet.