News for hackers. Stuff that matters.
Re:Modern Javascript: Everything you missed over the last 10... by yoz-y on Sunday May 16, 2021 @04:55AM (#27172282)
> Isn’t HTML supposed to be responsible for the structure of a webpage?

If by structure you mean things like hbox/vbox then no, html is not supposed to do that. HTML should only represent the semantic structure.

Re:Modern Javascript: Everything you missed over the last 10... by kaba0 on Sunday May 16, 2021 @04:59AM (#27172301)
Yeah I know, but that is because it was meant for documents. It is not a great fit for web applications.
Re:Modern Javascript: Everything you missed over the last 10... by danShumway on Sunday May 16, 2021 @01:03PM (#27175090)
Applications aren't special.

There are a couple of exceptions for interfaces that are genuinely unconventional, or that deal with multiple spacial dimensions, or that are primarily representing graphs and visual/audio data. But most interfaces should be representable in pure text.

This argument that "the web is only for documents" is missing the point that most applications are just interactive documents when you really break down their UI. A labeled tree is a fine way to represent user-facing state for most apps, and most apps would benefit from exposing a more semantic interface to users that was easier for them to manipulate and read programmatically.

Re:Modern Javascript: Everything you missed over the last 10... by eurasiantiger on Sunday May 16, 2021 @05:50AM (#27172507)
What is a better fit for web applications?
Re:Modern Javascript: Everything you missed over the last 10... by kaba0 on Sunday May 16, 2021 @06:12AM (#27172592)
Nothing, because web applications are by definition html css js. Though canvas-based solutions can circumvent the layouting problem, but at the price of reinventing everything in a non-standard way.
Re:Modern Javascript: Everything you missed over the last 10... by onethought on Sunday May 16, 2021 @06:55AM (#27172774)
The layout problem isn’t css... it’s the user platform is anything from a tiny vertical screen to a giant horizontal one.

Swing, Qt, et al do not have great answers to this problem, and definitely not superior ones than css.

Re:Modern Javascript: Everything you missed over the last 10... by mpfundstein on Sunday May 16, 2021 @12:23PM (#27174721)
qml is quite awesome. hands down! its a joy to work with.

but I agree in general with your statement.