4 ms·
In my opinion, the code was very difficult to read and even harder to understand for !expert javascript devs and even for experts. For example, I did, what eve
by _the_inflator 5y ago
In my opinion, the code was very difficult to read and even harder to understand for !expert javascript devs and even for experts.
For example, I did, what every decent JS developer back then did: you build yet another library ("helper library"), that just abstract these creations away.
So what else is the Class syntax? A helper.
I felt I was one of the very, very rare JS devs, who read "Secrets of a JS Ninja" from John Resig, the jQuery legend, top to bottom multiple times. Afterwards I build very cool stuff, however folks did not understand it with their normale knowledge of JS. It blew me away, that you could do stuff like Function.toString() in combination with RegEx and New Function(). I was awesome, that I could do, what the C# and Java guys could do. I just took a lot more code to achieve. Fast forward 10 years.
I am extremely glad, that TypeScript came a long. It makes collaboration so much more meaningful.
I still love the JavaScript ECMA5 stuff, however the tradeoff was too big. It is like staying with C instead of Python, Java, or DSLs.
Even "You might not need jQuery" ended up being pointless in regards to readability. Why write 20 lines of code, when you can put it in one line? Paradoxically Resig's jQuery had to do a lot of complex stuff to achieve the beauty of $(). So why not simply write Class?
Just my opinion.