Hacker News new | ask | show | jobs
by tonyedgecombe 2998 days ago
I'm trying to learn modern JavaScript at the moment, as well as getting to grips with prototypes I now have additional class syntax to learn and understand.

I've gone from learning one way of doing things to two, how is that easier to get going with?

1 comments

Because now there's one way instead of everyone bringing their own createClass/inherits implementation.

Also, prototypical classes like `function User` are now rare in my experience going forward.

> Because now there's one way instead of everyone bringing their own

In theory. In reality there's everyone bringing their own plus one more.

I think the appeal of JS is that it's a universal runtime, not anything about the language itself. I really wish syntactic changes would be left to transpilation.. because that's what every JS developer is doing anyways.