Digital pollution
2019-10-15You couldn’t just roll down the street leaving huge piles of garbage everywhere you go, making life slower for everyone as they climb over your mountains of junk, just to get on with their life. You’d feel bad about it, right?
That’s how I feel about the digital things we put out into the world: websites, apps, and files.
I prefer coding everything by hand, because I don’t like the huge piles of garbage that the automated generators create. These programs that generate a website, app, or file for you spit out thousands of lines of unnecessary junk when really only 10 lines are needed. Then people wonder why their site is so slow, and they think it’s their phone or connection’s fault.
Yesterday I needed to make a little vector logo. Two lines and two triangles. I tried to use a couple different vector drawing programs but they saved it as hundreds of lines. I knew it could be simpler, so I read up on SVG and made exactly what I wanted:
<svg height="54" width="54">
<defs><style type="text/css"><![CDATA[line,polygon{stroke:black;stroke-width:4} polygon{fill:black}]]></style></defs>
<line x1="2" y1="2" x2="2" y2="52" />
<line x1="52" y1="2" x2="52" y2="52" />
<polygon points="2,2 27,27 2,27" />
<polygon points="52,2 27,27 52,27" />
</svg>
Much better! 95% smaller file size, and the joy of making something by hand instead of having it done for me. But I think my biggest joy is eliminating the digital pollution that the auto-generated one created. It makes everything faster, easier, and cleaner for anyone involved. 95% less junk over the wires.
Same thing with the EPUB file for my new book. Today I spent the day creating the EPUB’s XML and XHTML by hand, instead of using a generator. I love the manual control and again - 90% smaller file size.
This makes me unreasonably happy. It feels like cleaning up the neighborhood. Or at least my yard.
(And I love it when people notice how fast my site loads.)