3 ms·
I write my code and HTML to be read by a human because: 1. I may need to work on that code or page in the future, 2. Someone else may need to work on that pag
by nitrogen 16y ago
I write my code and HTML to be read by a human because:
1. I may need to work on that code or page in the future,
2. Someone else may need to work on that page/code,
3. Some of that code may end up as open source,
4. I'm showing off to the 0.01% of people who view the source. I'd like everything I do to be of educational value to someone, somewhere, even if all they learn is how bad I am at writing compact HTML.
If I ever have any high-traffic sites, I'll most likely use a compacting system to shrink properly-indented templates and/or cached output from Ruby on Rails, rather than manually compact the HTML.