4 ms·
>I never write JS > ECMAScript 5. Why? Because you started too early during the web's rise, and are now too old for that... >Because I want my apps to work in
by coldtea 11y ago
>I never write JS > ECMAScript 5. Why?
Because you started too early during the web's rise, and are now too old for that...
>Because I want my apps to work in as many places as possible and I don't feel like arrow functions are worth breaking backwards compatibility.
They are not, since everybody uses them with Babel.
- wwweston 11y ago> Because you started too early during the web's rise, and are now too old for that... ES6 has some nice features -- all other things being equal I'd chose to write it over ES5. Or even ES3, since it fits with that sloppy ageist accusation you tossed off. As soon as you say "Babel" (or another transpiler), though, all other things are not equal. I've already chosen to work with ES6 anyway in some circumstances, but honestly, when it comes down to it, the benefits are marginal enough over ES5 that there's a reasonable case that anyone already effective with ES5 doesn't need to transition. And I might even go so far as to speculate that a programmer who is unable to be effective with ES5 might simply be the kind of programmer who can't really be effective whether they'd be working with Python, Ruby, Go, C#, whatever... but that would probably be tenuous bullshit on par with assuming anybody who doesn't want to add a transpiler to their toolchain in order to do essentially the same things they can do without it is Just Too Old.
- coldtea 11y agoThe problem is not with the individual programmer. One can make wonders with Commodore assembly too. Of course they can do stuff in plain JS. But they'd be reimplementing the wheel a lot. If you want to take advantage of the JS ecosystem as it stands in 2016, you need to use its tools. E.g. just consider using React with JSX -- you already need a transpiler for that.
- alistproducer2 11y agoYeah not really. I've probably written more complex JS code in the last 2 years than you'll ever write in your life so save the "too old" stuff for someone else. When your writing a recursive decent compiler from scratch, you don't really feel like debugging whatever errors some transpiler injects into your code. You'd rather it just work the first time and be sure it works everywhere. Check my github before you start mouthing off..... https://github.com/ShamariFeaster/Templar https://github.com/ShamariFeaster/Templar