Saving Time — cover art: a beaver in a brown waistcoat at a small wooden workbench by lamplight, patiently filing the teeth of a hand tool, while a brass clock on the wall behind him shows the hour gone.

2004 · Drunken Blog Rants · Rant

“The direct time savings from automating a task is far outweighed by the indirect time savings — avoiding context switching and letting software do the thinking for you.”
— From Saving Time, 2005
Read the essay

© 2004 Steve Yegge. Originally published at Drunken Blog Rants.

AI Notes

Steve sits down in 2005 to write a two-minute Emacs function and gets up an hour later having written, refactored, and benchmarked it out loud. The function is fix-amazon-url: it converts the bloated detail-page URLs from IE's address bar into the short /o/asin/<ASIN> canonical form. The back-of-envelope math is brutal — at the current rate of use the function pays for itself around invocation 720 — and the setup is a feint. The middle of the piece is five numbered points discovered in the order they arrive at a keyboard: automate tedious work; don't stop when the code works (his first 32-line version was correct and ugly, so he rewrites it to a third the size on principle); develop coding habits the way you develop hygiene habits; unit testing is more like the gym than brushing your teeth; and — the one the title pretends to be about — it's okay to "waste" time on productivity tools even when the spreadsheet says you won't get the time back.

The direct minutes saved are the smallest return; the real ones — not having to think about the task, not breaking concentration on real work, building tolerance for refactoring code that already works — don't fit on a spreadsheet.

Related listings

  • 2005

    Effective Emacs

    Same year, same toolkit, more general advice. Effective Emacs is the broader case for living inside the editor; Saving Time is one specific worked example of doing it for an hour.

  • 2005

    My .emacs File

    The companion show-and-tell: a walking tour of the accumulated little customisations Steve has built up the way the URL-munger gets built up here, one hour at a time, over years.

  • 2005

    Practicing Programming

    The argument that working programmers don't practise. Saving Time is one description of what practising actually looks like in your editor on a Tuesday afternoon.