3 ms·
I want the Web that was originally intended: One source of data, the document, which allows you to be as expressive and semantic as you want. Clients read this
by tomphoolery 11y ago
I want the Web that was originally intended: One source of data, the document, which allows you to be as expressive and semantic as you want. Clients read this data and implement it in their own way depending on how you're reading it, what kind of client you're using (screen-reader, etc.), whether you're on a mobile or a tablet, etc. No need for this responsive design bullshit that just wastes a ton of money and time for everyone involved.
You may be asking yourself, how are we going to "design" this web? The answer is still CSS and JavaScript, with the added use of web components. Web components attach behavior and styling to your elements, and can even allow the browser to interpret new elements for you that inherit from other elements or components. This means that `<div class="the-actual-element">` goes away, and we are left with a tag name that actually tells you what kind of content there is inside, class names that specify "mixins" to load in styles or event bindings for multiple elements, and the content of the element can be styled in any way.
All that aside, I still wonder if HTML is the "right" language for the job. Sure, it's in use everywhere, but why? Could we make something better and lighter for browsers to interpret, so that the same document could be parsed quickly by an API client of some kind? I really like the significant whitespace of Haml, and especially Slim's DSL which lets you just define new elements without prefixing them with '%'. Although Haml is pretty sweet, a language looking like Slim would clearly be less annoying to type out given most of your elements are totally custom. What I'd really like is a language which combines Slim for document layout and Markdown for copywriting:
article#the-name-of-my-article
title
The name of my article
preview
This is a preview of the article content. It's parsed with _Markdown_.
content
This is the *actual* article content, parsed with **Markdown** as well.
- [A link](http://news.ycombinator.com)
time.localized
2000-01-01T00:00:00Z
category
general bullshit