News for hackers. Stuff that matters.
Re:When XML Beats JSON: UI Layouts by MH15 on Wednesday October 30, 2019 @11:38AM (#21398901)
I fully agree with this statement. My work is generally for the web, and HTML has the same issues. It's amazing how much removing a single tag in a nested tree can mess up VSCode's parsing engine. Just modifying the tags usually works on both open and close though.
Re:When XML Beats JSON: UI Layouts by danShumway on Wednesday October 30, 2019 @12:21PM (#21399388)
One point I try to get across to people working on the web is that they should think of HTML as a render target, not as a layout tool.

The point of HTML isn't to make it easy to lay out a document, it's to have an easily understandable pure-text representation of hierarchical data that can be read by computers/users. Light, well-formatted, semantic HTML isn't an engineering concern, it's a UX concern.

Of course HTML can be used as a layout tool, but that's not its primarily purpose, otherwise it would include decent 2-way data bindings for tables.