News for hackers. Stuff that matters.
Re:Writing HTML by Hand by bambax on Wednesday September 20, 2023 @04:08AM (#37581693)
I don't exactly write "HTML" by hand if by HTML one means (as seems to be implied in the article) long text documents with HTML tags in it. For that I use markdown because it's faster and much easier to read.

But I do write HTML templates by hand when I code webapps; it's cleaner and more efficient than use some kind of library.

I tend to use DIVs with custom data- attributes; I don't know if it's a good or bad practice but I'm not familiar enough with other approaches and I'm used to it.

I also code SVGs by hand and it's surprisingly easy and straightforward; most (not all, but most) drawings can be approximated by combining elementary shapes (instead of paths).

Re:Writing HTML by Hand by fuzztester on Wednesday September 20, 2023 @07:18AM (#37582817)
>I also code SVGs by hand and it's surprisingly easy and straightforward; most (not all, but most) drawings can be approximated by combining elementary shapes (instead of paths).

Interesting. Do you have any examples of thise approximations?

Re:Writing HTML by Hand by bambax on Wednesday September 20, 2023 @08:46AM (#37583463)
Here's the Y of HN that I posted as a comment a couple of months ago:

https://news.ycombinator.com/item?id=35898741

Re:Writing HTML by Hand by fuzztester on Thursday September 21, 2023 @12:20AM (#37593187)
Thanks.