News for hackers. Stuff that matters.
Re:How JavaScript Works: deep dive into call, apply, and bind by matheusmoreira on Saturday July 10, 2021 @10:48AM (#27793672)
> Incidentally, we should also discard `this`, unless directly inside an instance method of a class.

We should discard classes instead. People have trouble understanding `this` because they insist on thinking in terms of classes and methods which are second class concepts in Javascript. Once I understood objects and prototypes, `this` also became easy to understand.

Programming with Object.create produced the cleanest code I've ever seen. Nothing but functions, objects and prototypes. I simply don't understand why the new versions of Javascript insist on adding even more of this class stuff.

There are no comments on this comment yet.