News for hackers. Stuff that matters.
Re:Ask HN: Will front end development ever move away from Ja... by jondubois on Sunday March 12, 2017 @02:04PM (#13852031)
I agree, JS is quite an elegant language, especially since ES6.

I'm kind of disappointed with the introduction of the 'class' keyword though (and the way it was implemented). The old prototype function declaration approach is really good once you understand it.

Re:Ask HN: Will front end development ever move away from Ja... by spraak on Sunday March 12, 2017 @02:35PM (#13852230)
I do like how the prototype way makes it more clear that it's just a function. What about you?
Re:Ask HN: Will front end development ever move away from Ja... by coldtea on Sunday March 12, 2017 @03:50PM (#13852671)
I find that an implementation detail that most people don't care about in their use of prototypes.
Re:Ask HN: Will front end development ever move away from Ja... by spraak on Sunday March 12, 2017 @04:11PM (#13852787)
I don't follow
Re:Ask HN: Will front end development ever move away from Ja... by woah on Sunday March 12, 2017 @04:24PM (#13852869)
Prototypes in js are almost always used in a way that approximates classical classes, but with confusing syntax. The 'class' keyword just makes things more readable.