Document, Document, Document - Good Documentation is the Gateway to Good Automation
Before we dive into the how of automation, I thought it best to discuss my favorite gateway to automation: documentation. In the initial essay in this series, I defined automation as anything that eases the effort needed to complete a task. Therefore, documentation can help us before we do a task, during a task, and can be written and refined after a task.
Why Document? Overcoming Documentation Inertia
I titled this article with a mantra I shared with many young leaders who were new to supervision and experiencing their first issues with workplace performance: document, document, document. The best way to deal with any performance problem is to focus specifically on the issue itself and avoid personalizing it. Documentation allows you to provide concrete examples of where and how the problem occurred. These performance conversations are never easy, but documentation makes them easier by keeping the discussion factual instead of personal.
Many people resist documenting anything. As Pragati Sinha wrote in The Art of Writing Good Documentation, people offer excuses like it's a waste of time, no one reads it, or no one has time to use it. But, as Sinha points out, these are simply excuses. Writing good documentation is hard. Figuring out how to make something understandable to the audience, whether that's you or a public audience, is not easy. Programmer Damian Conway wrote in Perl Best Practices, "Documentation is a love letter that you write to your future self."
You've probably seen the benefit of good documentation. Think of a time when you started using a new online tool and immediately felt comfortable with it. Maybe you bought a piece of "do it yourself" furniture or a tool and found that putting it together was a breeze with the provided instructions. Or think of any time your GPS got you exactly where you needed to go without a single wrong turn. All of these are examples of documentation making your day a little easier.
Documentation happens at all levels of the automation process. Software programmers document their code to help themselves troubleshoot errors and issues both as they write and in the future. When we write various automations later in this series, I'll demonstrate good documentation inside or adjacent to the automations themselves.
In her article on writing good documentation, Lari Maza suggests separating the how from the why to keep documentation fresh and easy to update, especially when writing about technical processes. The "how"—the technical part—changes more regularly than the "why" and even more often than the "what." I'll break down how I define each of these three parts—the how, what, and why—below and provide examples of each. But before we get there, let's explore the three ways documentation helps us. I've adapted these from Sinha's article:
Provides a road map
Captures our actions
Explains to others
Documentation as Road Map
In the software world, you often hear about product roadmaps. They are sets of, often loose, plans for future development. Automation road maps can help us at any stage of the automation process. Let's look at some examples.
The Packing List
A packing list is a form of documentation that we typically put together before we start the process of actually packing. It streamlines the process of packing. People who pack from the same list often group items by rooms or parts of their luggage. You might organize your list by bathroom, bedroom, closet, etc., or by cable bag, toiletries, undergarments, clothing, etc. As you iterate on the packing list trip after trip, you identify efficiencies and might rewrite or regroup it. This is also a form of capturing your actions that makes the process easier the next time.
Simplifying Really Complex Processes
How a law gets made in the US is an extremely complex process. It's also one that needs to be understandable to every citizen. The graphic above is one of my favorite depictions of how our laws are made. It is not only a road map to make my life easier if I decide I want to try to get a law made, but it also explains this highly complicated process in *relatively* easy-to-understand ways.
Documentation as Capturing Our Actions
Capturing our actions both leads to opportunities for automation and allows us to use our automations more effectively. Let's look at an example of each.
Daily Logs
My friend R.J. Nestor taught me the value of logging my work. R.J. logs his work daily. Then he looks back at those logs for opportunities to automate or, in his words, to build productivity bridges.
https://twitter.com/rjnestor/status/1781466358384910699
His daily logs become a road map for future productivity bridges, allowing him to automate and make his life easier in the future.
Automation Comments
As I noted earlier, I'll demonstrate good documentation within or adjacent to the automations we build later in this series. Here's an example:
The comment you see above is in one of my iOS/Mac shortcuts. It is the very first thing I see inside of that shortcut. When I run the shortcut, I don't see it. However, if I need to troubleshoot the shortcut, I see this at the top of the shortcut before any action steps. This is an example of the "what" of documentation, with a little implied "why", which we'll define a little later. This comment immediately summarizes my goals for this shortcut without me having to review all the steps and figure it out again.
Documentation as Explaining to Others
As an educator, my world is about explaining things to others in a way they can understand. If they don't understand, I’ve either misjudged their existing knowledge or failed to explain the topic clearly enough. I've fallen victim to both more times than I can count.
Delegation
Whether you have a personal assistant or use grocery store pickup, you have experience documenting something to explain to others. Let's consider both examples.
The Grocery Pickup Order
When I put in our grocery order, I select the items I want, identify where substitutions are and are not allowed, and set the time parameters for picking up my order.
A Personal Assistant
I was fortunate enough to work with an incredible executive assistant for many years. She handled my calendar, travel, some email, and many daily activities. To enable her to do this effectively, I had to document my preferences. This took various forms over the years.
I’d video myself doing the process and she’d write the documentation.
She’d sit with me, watch the process, and document it after discussion.
I wrote a draft set of documentation, and then she/we edited it until it worked well for her.
Each method has merit and is also a good way of creating documentation for yourself. When working through automations or demos I put on YouTube, I often do the video first and then write the process from the video, including documenting errors if they may be relevant to others.
The Why, What, and How of Documentation
We often think of documentation in software terms as only being about the how: click this button, enter this text, press this key, and so on. That's important, but so are the why and the what. The why and the what of documentation give us the scope of the thing we're documenting or automating. The what specifically defines our scope, or put another way, it defines what we are and are not documenting/automating.
Let's take the packing list example again. I have a primary packing list. This contains lists, by bag, everything I need to consider packing for all types of weather and all my standard types of vacations. I take a lot of cruises, so there is a special section just for those embedded within that list. Whether I'm taking a 4-night cruise to the Bahamas, a 7-night trip to Florida, or a 1-night business trip to St. Louis, that packing list is generally the only thing I need. But what about "non-standard" trips?
I recently went on an 8-night family road trip with my dog to cabins in northern Michigan. There were variables that my primary packing list doesn't cover: the dog, extra food and cooking tools/supplies for the cabin, and the fact we were stopping for one night in a hotel on the way to the cabins and I didn't want to take my suitcase into the hotel. So, in addition to my primary packing list, I also had a special Michigan list. Now, the things on that list are on my primary packing list under "Michigan Trips/Road Trips" as a special subcategory for future trips.
The why of documentation explains why you need the automation at all or might explain to future you why it was useful at a point in time. In the example of the comment from an iOS/Mac OS Shortcut, the why is currently implied: I want to start a work session and then end that session before moving on to something else. This keeps my "work area" clean and makes it easier for me to focus. I promise that I've resolved the "implied" part and the why is now in the comment too.
Automate With Me for August of Automation 2024
As part of August of Automation 2024, I'll be live streaming some of my own automation work sessions starting on August 2, 2024, at 1 p.m. Eastern. Assuming no technical issues, I'll be doing this every Friday in August at 1 p.m. Eastern for about an hour. You can join the first session on YouTube at that time.
For future sessions, check out my Knowledge Work Nexus YouTube Channel to see all scheduled live streams.
Do you want early access to all of my articles and other resources that aren't published anywhere? Join the I Wanna Be Me When I Grow Up Community. As I build the community, you pay what you want. Use coupon code CHOOSE## for a discount: CHOOSE10, CHOOSE20, up to CHOOSE100 for that percentage off for life.
📰 Want to make sure you never miss a story from me? Subscribe to my newsletter. I send out a fresh new article and do a roundup of everything I published that week. It is released for free every Monday.