Hacker News new | ask | show | jobs
by kristiandupont 4209 days ago
I hated JS in the beginning, trying to make write it more like I write C# or C++ (I have experience with other languages, but the syntax lead me to believe that this style would be best suited). I wrote "self = this" a lot.

Now, I have adopted a much more functional style and I find JS increasingly pleasant to work with every day. To the point where many of the new ES6 features are a bit worrying because it looks like they want to take it in the direction of what I wanted it to be when I started. At this point, using "this" or "prototype" is almost a smell -- they're useful at times but whenever I use them something in the back of my mind tells me that I could probably be doing something more elegant.

1 comments

Isn't ES6 backwards compatible?
Sure, but the standard is going to influence the direction that the language evolves in, how most libraries are written and so on.
I agree, it would be better if JavaScript was made even less human-friendly than it is now. This way the transpilation approach would become mainstream and people would get a real choice of language instead of an arithmetic average of language preferences. Thankfully, the Asm.js is making some important right steps in that direction - and boosting the performance as well!