3 ms·
Your talking the web of 1990-2010, fact is most websites today are heavily reliant on - or even exclusively created in - javascript. Even if most websites woul
by ROARosen 6y ago
Your talking the web of 1990-2010, fact is most websites today are heavily reliant on - or even exclusively created in - javascript.
Even if most websites wouldn't use the interactivity of JS, there is no reason for there to be three different standards. All those plain-text websites can be created in JSON just as well. The argument is, there is no need for plain HTML at this point, so why is this the base standard?
- timw4mail 6y agoThere is a need for plain HTML. HTML is robust, can render incrementally, and can stand on its own. Javascript sucks. It's a subtle minefield of a language, takes more time to parse than HTML or CSS, and is by far the most brittle part of the website. Websites rendered only through Javascript are trash.
- ROARosen 6y agoWhatever your dislike-level to JS is, we cannot dispute the fact that JS, or at least JSON can do pretty much everything HTML can do, but not the other way around. Of course our beloved HTML can still exist, just as PDF exists. But in my opinion it shouldn't be the required standard. Since I can markup just as easily in JSON And like it or not JS is one the the core web components today, we can make JS the standard (we can keep it safe by allowing defining a safe subset of JS - e.g. JSON - which would work with general scripts disabled), with support for plain ol' HTML. Point is, JSON can replace HTML, while preserving everything you like about HTML but not vice versa.
- timw4mail 6y agoThe JSON standard as is can not replace HTML because it has no room for error correction. Regardless of capability, one of the primary strengths of HTML is that it is forgiving at a syntax level. JS and JSON are not.
- jazzyjackson 6y agoI still don't understand how people think they're going to build a website in pure JS. I built a template preprocessor that lets me write all my HTML and CSS with the same syntax as a big JSON file, or a JS module if I want to drop in some loops and includes, and even working on replacing the JS with syntax that fits in the JSON file. But I still need a way to think about "this box sits next to this box" and "this mask applies to all these boxes" -- what would I do without HTML?