News for hackers. Stuff that matters.
Re:Write HTML Right by sph on Friday June 10, 2022 @11:42AM (#31695716)
This is the output of an app/templating system, i.e. not a single HTML page. Have you ever read the HTML of any dynamically generated page? It's unreadable.
Re:Write HTML Right by jaywalk on Friday June 10, 2022 @12:24PM (#31696252)
> This is the output of an app/templating system, i.e. not a single HTML page.

I don't think that's correct. The article is literally talking about how to write HTML, and explaining the benefits of writing it in this style.

Re:Write HTML Right by julianlam on Friday June 10, 2022 @12:52PM (#31696599)
> Have you ever read the HTML of any dynamically generated page? It's unreadable.

Not with that attidude... if you write consistently and with intention, it turns out just fine.

Check out the source for https://try.nodebb.org, for example. Dynamically generated, (mostly) syntactically correct, (mostly) human readable.

Re:Write HTML Right by ryanbrunner on Friday June 10, 2022 @02:11PM (#31697517)
All the HTML code in the app I maintain is pretty readable. At some point of complexity any HTML is difficult to parse, but if I hand-wrote a page in my app I think the HTML would be largely the same.