3 ms·
Personally, I think the real problem with the web ecosystem is HTML. HTML is for printed documents as web "pages," literally. It even has <figure> which is for
by AlienRobot 2y ago
Personally, I think the real problem with the web ecosystem is HTML. HTML is for printed documents as web "pages," literally. It even has <figure> which is for "fig. 1" kind of things.
HTML is so bad that we NEED Javascript because CSS isn't enough. For example, there is no way to define a layout in HTML for different screen sizes and then SEPARATELY define the content of that layout. Nor is there a way to define in HTML that a div should jump from one part of the screen to another if there isn't enough space. We spent years telling the lie that we're supposed to split semantics and presentation, but in reality CSS simply doesn't provide enough power to actually ignore the structure, since you can't tell div1 to align itself to div2 if div2 isn't an ancestor or sibling of div1. Now every website looks extremely simple because if they made it even a tiny bit more complicated it would be impossible to make the flexboxes wrap right with just CSS.
We need HTML2.
- colonelspace 2y agoWe don't need another version of HyperText Markup Language. We need something else. I don't know what it is, but another way to markup text doesn't sound like a great fit for a new way to build user interfaces.
- TimTheTinker 2y agoWhatever it is, it should have a readable plaintext format. Maybe a DSL of sorts.
- hombre_fatal 2y agoWell, we "need" Javascript because it provides programming capabilities that HTML, being a markup language, cannot provide on its own. HTML is just the substrate for representing the UI. All you would be doing is creating another programming language while taking another swing at coming up with yet another abstraction for UI dev like everyone before you.
- Arjuna144 2y agoIt kind of exists.... as a js library - ofc.... Who would have thought. It is called HTMX and its successor data-star.dev
- codethief 2y agoHTMX addresses none of the issues GP mentioned.
- lenerdenator 2y ago... I was listening to a podcast about HTMX as a new thing to take a look at this last summer, and there's already a successor to it? Jfc, it hasn't been a year yet.
- recursivedoubts 2y agodata-star isn't a successor to htmx, it's a pretty different take on hypermedia, using SSE for a streaming, dynamic hypermedia driven system. cool, definitely capable, but significantly different htmx generalizes hypermedia controls, and that's all it will do, forever
- skydhash 2y agoNot really HTML2. Almost all current UI engines uses an xml variant, and they have a much lower number of components and a simpler foundation. And they provide you with a easy-to-use 2d context when you need to do custom components. What we need are better primitives for web applications. And separated from the web as documents.