News for hackers. Stuff that matters.
Re:Future JavaScript: what is still missing? by mschuetz on Sunday January 27, 2019 @02:06PM (#19013195)
JS classes look like classes, behave like classes, and for all practical purposes are classes. They were one of the most useful additions to JS in recent years and make code so much more readable compared to hacking things together with the prototype system. With the added bonus, that you can still modify the prototype of a class to replace functions for all already generated instances of that class.
Re:Future JavaScript: what is still missing? by adrianhel on Sunday January 27, 2019 @04:33PM (#19013917)
Don't disagree, but for React users onClick={this.doStuff.bind(this)} is pretty common for newbies who just read it somewhere and don't know of the perf implications of bind.

But personally I prefer prototypal inheritance and the everything is an object mentality.