Advancing JavaScript without breaking the web
christianheilmann.com
christianheilmann.com
ONLY only for webSITES not for webAPPS. For Webapps I pretend js-disablers don't exist. For something like a blog, news site, etc yes it should work without JS but if one more person tries to tell me to support people with JS turned off in a webapp I'm going to blow. I simply can't be asked to push the envelope AND support people living in the dark ages. This was fine when we just used JS for some client-side validation or the like but now I'm working with drag/drop interfaces, maps, ajax, single-page apps, and more. Those simply DO NOT HAVE non-js fallbacks without writing shit load of duplicate server-side code. Now node.js may offer a way around this (render on the server-side the same templates that are on the client side) but I'm still not sure how you are supposed to replace a auto-complete dropdown for something like tagging friends or just sending a message to a friend on facebook...
If there are enough people to justify making a non-js version then great, here is an IDE, get started, do it yourself I'll even put a link to your site in my noscript tags. I'm past using JS like a little sugar you sprinkle on at the end of a project, it is integral to most of what I write.
Please show me a company (not Google/FB/etc) that supports a non-js and JS version of their site (A site that is interactive, not a blog or similar).
This post misses the single most important tool for users (to help them try syntaxes), framework developers (to help them be more productive and consistent), and standards developers (to get feedback):
Transpilers.
Because much of ES5 is reflective (and ES6 even more so), it makes a great target for the translation of a new syntax into old syntax. This cycle of reflective-api-to-new-syntax is exactly what Yehuda is talking about in his post http://yehudakatz.com/2013/05/21/extend-the-web-forward/.
The impact of transpilers on ES module syntax, ES classes, and ES promises as been amazing. You can see the same thing happening with decorators/annotations today- real world use in TypeScript is influencing the discussions of TC39.
> The current support table of ECMAScript6 in browsers, parsers and compilers doesn’t look too encouraging. A lot is red and it is unknown in many cases if the makers of the products we rely on to run JavaScript will take the plunge.
I disagree in the strongest terms. ES6/E2015 is a huge amount of changes, and browsers have been driving the discussion and implementing items as they have stabilized.
> I disagree in the strongest terms. ES6/E2015 is a huge amount of changes, and browsers have been driving the discussion and implementing items as they have stabilized.
Agreed, I've seen a lot of progress on this front.
Also
> Transpilers
YES, we use babel (6to5) where I work and it's awesome, hook that up with some source maps and you get to write AND DEBUG in ES6. I don't plan on ever going back, my new personal projects all use babel now, I'm already living in a world of ES6 (well for things supported by transpilers and polyfills)
Sorry for the convenience.