DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Coding
  3. Languages
  4. How to Automate Anything

How to Automate Anything

5 steps to automate any process, from baking cookies to CI/CD. So easy even Cookie Monster could do it.

Jonathan Hall user avatar by
Jonathan Hall
·
Jul. 28, 21 · Tutorial
Like (7)
Save
Tweet
Share
13.94K Views

Join the DZone community and get the full member experience.

Join For Free

Introduction

I’ve been thinking a lot lately about the relationship between manual tasks and automation. In this process, I’ve found myself describing how to move from one to the other in various contexts, and a pretty clear pattern has popped out at me. Here I want to distill the pattern down to the steps necessary to automate practically any process.

  1. Document all the steps.

    If the process is baking cookies, your list might look something like:

    • Mix ingredients
    • Form small balls from the dough, and place them on a baking sheet
    • Place the baking sheet in the oven for a while
    • Remove the baking sheet, and eat cookiesCookie monster eating some delicious cookies
  2. Create a checklist.

    When baking cookies, this is usually called a recipe. This is a more detailed list of your list of steps. It should be sufficiently detailed that “anyone” can follow the instructions, and have the predictable desired result.

    • Mix 2 cups flour, 1 cup sugar, 2 eggs…
    • Preheat the oven
    • Bake for 20 minutes
  3. I like to think of this step as a sort of ”manual automation”. It’s designed to be done by a person, but in a way that requires no human ingenuity. In this case, the person acts as a human Turing machine, simply executing each step in the checklist.

  4. Automate the single most painful task.

    It’s usually a bad idea to automate an entire process all at once. There’s usually one constraint that’s acting as a bottleneck to your process. Identify the single most painful (or time-consuming, or costly) step, and automate it. Don’t worry about the other steps.

    When baking cookies, it’s common to automate the “mixing” step, with some sort of electric mixer.

  5. Observe, iterate.

    After the single most painful task is automated, you may decide you’re done with your automation task. Unless you’re an elf living in a tree, it’s likely not worth the cost of automating the insertion and removal of cookies into the oven.

    Or maybe you’re like my wife, and decide to purchase a kitchen robot that automates many other parts of the cooking process (it measures, chops, mixes, even cooks some things).

    If you find that your process is still painful, or later becomes painful (due to a change in context or scale), then return to step 3.

Baking IT Task (computing) Sort (Unix) Mix (build tool) Electric (software) Clear (Unix) Tree (data structure) Turing (programming language)

Published at DZone with permission of Jonathan Hall. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • How to Submit a Post to DZone
  • The Quest for REST
  • How To Create and Edit Excel XLSX Documents in Java
  • A Brief Overview of the Spring Cloud Framework

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: