A place to cache linked articles (think custom and personal wayback machine)
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

index.md 2.4KB

4 år sedan
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. title: Digital pollution
  2. url: https://sivers.org/polut
  3. hash_url: a56645e827e2793eb3e079f2c5ba71a5
  4. <p>
  5. You 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.
  6. You’d feel bad about it, right?
  7. </p><p>
  8. That’s how I feel about the digital things we put out into the world: websites, apps, and files.
  9. </p><p>
  10. I prefer coding everything by hand, because I don’t like the huge piles of garbage that the automated generators create.
  11. 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.
  12. Then people wonder why their site is so slow, and they think it’s their phone or connection’s fault.
  13. </p><p>
  14. Yesterday I needed to make a little vector logo.
  15. Two lines and two triangles.
  16. I tried to use a couple different vector drawing programs but they saved it as hundreds of lines.
  17. I knew it could be simpler, so I read up on SVG and made exactly what I wanted:
  18. </p>
  19. <pre><code>
  20. &lt;svg height=&quot;54&quot; width=&quot;54&quot;&gt;
  21. &lt;defs&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;![CDATA[line,polygon{stroke:black;stroke-width:4} polygon{fill:black}]]&gt;&lt;/style&gt;&lt;/defs&gt;
  22. &lt;line x1=&quot;2&quot; y1=&quot;2&quot; x2=&quot;2&quot; y2=&quot;52&quot; /&gt;
  23. &lt;line x1=&quot;52&quot; y1=&quot;2&quot; x2=&quot;52&quot; y2=&quot;52&quot; /&gt;
  24. &lt;polygon points=&quot;2,2 27,27 2,27&quot; /&gt;
  25. &lt;polygon points=&quot;52,2 27,27 52,27&quot; /&gt;
  26. &lt;/svg&gt;
  27. </code></pre>
  28. <img src="https://sivers.org/images/HitMediaLogo-54.svg">
  29. <p>
  30. Much better!
  31. 95% smaller file size, and the joy of making something by hand instead of having it done for me.
  32. But I think my biggest joy is <strong>eliminating the digital pollution</strong> that the auto-generated one created.
  33. It makes everything faster, easier, and cleaner for anyone involved.
  34. 95% less junk over the wires.
  35. </p><p>
  36. Same thing with the EPUB file for my new book.
  37. Today I spent the day creating the EPUB’s XML and XHTML by hand, instead of using a generator.
  38. I love the manual control and again - 90% smaller file size.
  39. </p><p>
  40. This makes me unreasonably happy.
  41. It feels like cleaning up the neighborhood.
  42. Or at least my yard.
  43. </p><p>
  44. (And I love it when people notice how fast my site loads.)
  45. </p>
  46. <img src="https://sivers.org/images/HitMediaLogo-54.png">