Automate to Save Mental Energy, Not Time
Automation doesn't necessarily save time, but it does save mental energy, and there's something to be said for that.
Join the DZone community and get the full member experience.Join For Free
automation doesn’t always save as much time or effort as we expect.
the xkcd cartoon above is looking at automation as an investment. does the work i put in now eventually save more work than i put into it? automation may be well worth it even if the answer is “no.”
automation can be like a battery as well as an investment. putting energy into batteries is a bad investment; you’ll never get out as much energy as you put in. but that’s not why you put energy into batteries. you put energy in while you can so you can use some of that energy later when you need it.
write automation scripts when you have the time, energy, and motivation to do so and when nothing else is more important. (or nothing is more interesting, if you’re looking for a way to procrastinate without feeling too guilty. this is called “moral compensation.”) you may indeed save more work than you put into writing the scripts. but you also may save mental energy just when you need it.
suppose it takes you an hour to write a script that only saves you two minutes later. if that two minutes would have derailed your concentration at a critical moment, but it didn’t because you had the script, writing the script may have paid for itself, even though you invested 60 minutes to save 2 minutes.
if your goal is to save mental energy, not time, you have a different strategy for automation. if a script executes faster than a manual process, but it takes a long time to remember where to find the script and how to run it, it may be a net loss. the less often you run a script, the chattier the interface should be.
the same considerations apply to learning third party software. i suspect the time i’ve put into learning some features of emacs, for example, will not pay for itself in terms of time invested versus time saved. but i’ve invested leisure time to save time when i’m working hard, not to save keystrokes but to save mental energy for the project at hand.
Published at DZone with permission of John Cook, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.