Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. When to automate a repetitive task:

When to automate a repetitive task:

Scheduled Pinned Locked Moved Uncategorized
20 Posts 16 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • simontatham@hachyderm.ioS simontatham@hachyderm.io

    When to automate a repetitive task:

    NO-BRAINER: "This is obviously going to be faster to automate than to do it by hand _even once_. Let's automate it right now, and not do it by hand at all."

    FORESIGHTED: "Doing it once by hand is faster than automating it, but I'm going to have to do it a lot of times, so it still saves time to automate it first."

    NEED A RUN-UP: "I don't yet understand this task well enough to automate it, so I'll do it a few times by hand first to get the idea."

    RAN OFF THE RUNWAY: "Great, now I've done this by hand a few times, I think I can automate it reliably! Oh, oops, turned out I only had one more case of it left to do."

    TERRIFIED OF RUNNING OFF THE RUNWAY: "This is a one-off, so it would be a waste of time to automate it, I'll just do it manually."
    [next day] "Oh, oops, I made a mistake and have to do it again. But it should be fine this time."
    [a month later] "Even though I've had to redo it 25 times already, surely _this_ is the last time? So it would still be a waste of time to automate it."

    cunobaros@mendeddrum.orgC This user is from outside of this forum
    cunobaros@mendeddrum.orgC This user is from outside of this forum
    cunobaros@mendeddrum.org
    wrote last edited by
    #5

    @simontatham SEP field: This is a regular but infrequent task which we share in the team. It won't be my turn to do it again until December so I'll do it manually now and hope someone has automated it before then.

    rkbw@rollenspiel.socialR geraldew@fosstodon.orgG 2 Replies Last reply
    0
    • simontatham@hachyderm.ioS simontatham@hachyderm.io

      When to automate a repetitive task:

      NO-BRAINER: "This is obviously going to be faster to automate than to do it by hand _even once_. Let's automate it right now, and not do it by hand at all."

      FORESIGHTED: "Doing it once by hand is faster than automating it, but I'm going to have to do it a lot of times, so it still saves time to automate it first."

      NEED A RUN-UP: "I don't yet understand this task well enough to automate it, so I'll do it a few times by hand first to get the idea."

      RAN OFF THE RUNWAY: "Great, now I've done this by hand a few times, I think I can automate it reliably! Oh, oops, turned out I only had one more case of it left to do."

      TERRIFIED OF RUNNING OFF THE RUNWAY: "This is a one-off, so it would be a waste of time to automate it, I'll just do it manually."
      [next day] "Oh, oops, I made a mistake and have to do it again. But it should be fine this time."
      [a month later] "Even though I've had to redo it 25 times already, surely _this_ is the last time? So it would still be a waste of time to automate it."

      darkling@mstdn.socialD This user is from outside of this forum
      darkling@mstdn.socialD This user is from outside of this forum
      darkling@mstdn.social
      wrote last edited by
      #6

      @simontatham I'm a fan of the variant of "need a run-up", where you don't know what you're doing, but want to make sure that when you have to redo it, you redo the working steps the same way.

      The best way of doing this is to write down the steps. In a script. So when you do get it working, you have most of your automation already written.

      wolf480pl@mstdn.ioW 1 Reply Last reply
      0
      • simontatham@hachyderm.ioS simontatham@hachyderm.io

        When to automate a repetitive task:

        NO-BRAINER: "This is obviously going to be faster to automate than to do it by hand _even once_. Let's automate it right now, and not do it by hand at all."

        FORESIGHTED: "Doing it once by hand is faster than automating it, but I'm going to have to do it a lot of times, so it still saves time to automate it first."

        NEED A RUN-UP: "I don't yet understand this task well enough to automate it, so I'll do it a few times by hand first to get the idea."

        RAN OFF THE RUNWAY: "Great, now I've done this by hand a few times, I think I can automate it reliably! Oh, oops, turned out I only had one more case of it left to do."

        TERRIFIED OF RUNNING OFF THE RUNWAY: "This is a one-off, so it would be a waste of time to automate it, I'll just do it manually."
        [next day] "Oh, oops, I made a mistake and have to do it again. But it should be fine this time."
        [a month later] "Even though I've had to redo it 25 times already, surely _this_ is the last time? So it would still be a waste of time to automate it."

        agturcz@circumstances.runA This user is from outside of this forum
        agturcz@circumstances.runA This user is from outside of this forum
        agturcz@circumstances.run
        wrote last edited by
        #7

        @simontatham If not automated that already, around the 4th-5th time max is when I am "I need to automate it this time, it will take some effort, but I am not going to do this manually again". However, the threshold might be lowered if the given environment is already tedious.

        1 Reply Last reply
        0
        • cunobaros@mendeddrum.orgC cunobaros@mendeddrum.org

          @simontatham SEP field: This is a regular but infrequent task which we share in the team. It won't be my turn to do it again until December so I'll do it manually now and hope someone has automated it before then.

          rkbw@rollenspiel.socialR This user is from outside of this forum
          rkbw@rollenspiel.socialR This user is from outside of this forum
          rkbw@rollenspiel.social
          wrote last edited by
          #8

          @cunobaros @simontatham Automating something also provides complete documentation - that benefit shouldn't be underestimated 🧐

          Sometimes I write a bash script which does (semi-)automagically a job which needs to be done quite rarely. Thus I don't forget something important 😇

          1 Reply Last reply
          0
          • simontatham@hachyderm.ioS simontatham@hachyderm.io

            When to automate a repetitive task:

            NO-BRAINER: "This is obviously going to be faster to automate than to do it by hand _even once_. Let's automate it right now, and not do it by hand at all."

            FORESIGHTED: "Doing it once by hand is faster than automating it, but I'm going to have to do it a lot of times, so it still saves time to automate it first."

            NEED A RUN-UP: "I don't yet understand this task well enough to automate it, so I'll do it a few times by hand first to get the idea."

            RAN OFF THE RUNWAY: "Great, now I've done this by hand a few times, I think I can automate it reliably! Oh, oops, turned out I only had one more case of it left to do."

            TERRIFIED OF RUNNING OFF THE RUNWAY: "This is a one-off, so it would be a waste of time to automate it, I'll just do it manually."
            [next day] "Oh, oops, I made a mistake and have to do it again. But it should be fine this time."
            [a month later] "Even though I've had to redo it 25 times already, surely _this_ is the last time? So it would still be a waste of time to automate it."

            krahabors@toot.lvK This user is from outside of this forum
            krahabors@toot.lvK This user is from outside of this forum
            krahabors@toot.lv
            wrote last edited by
            #9

            @simontatham one more case - when task is too complicated so doing it manually is asking for a trouble -> automating makes it less prone to mistakes

            1 Reply Last reply
            0
            • simontatham@hachyderm.ioS simontatham@hachyderm.io

              When to automate a repetitive task:

              NO-BRAINER: "This is obviously going to be faster to automate than to do it by hand _even once_. Let's automate it right now, and not do it by hand at all."

              FORESIGHTED: "Doing it once by hand is faster than automating it, but I'm going to have to do it a lot of times, so it still saves time to automate it first."

              NEED A RUN-UP: "I don't yet understand this task well enough to automate it, so I'll do it a few times by hand first to get the idea."

              RAN OFF THE RUNWAY: "Great, now I've done this by hand a few times, I think I can automate it reliably! Oh, oops, turned out I only had one more case of it left to do."

              TERRIFIED OF RUNNING OFF THE RUNWAY: "This is a one-off, so it would be a waste of time to automate it, I'll just do it manually."
              [next day] "Oh, oops, I made a mistake and have to do it again. But it should be fine this time."
              [a month later] "Even though I've had to redo it 25 times already, surely _this_ is the last time? So it would still be a waste of time to automate it."

              souliboi@chaos.socialS This user is from outside of this forum
              souliboi@chaos.socialS This user is from outside of this forum
              souliboi@chaos.social
              wrote last edited by
              #10

              @simontatham me when procrastinating on setting up ansible

              1 Reply Last reply
              0
              • simontatham@hachyderm.ioS simontatham@hachyderm.io

                When to automate a repetitive task:

                NO-BRAINER: "This is obviously going to be faster to automate than to do it by hand _even once_. Let's automate it right now, and not do it by hand at all."

                FORESIGHTED: "Doing it once by hand is faster than automating it, but I'm going to have to do it a lot of times, so it still saves time to automate it first."

                NEED A RUN-UP: "I don't yet understand this task well enough to automate it, so I'll do it a few times by hand first to get the idea."

                RAN OFF THE RUNWAY: "Great, now I've done this by hand a few times, I think I can automate it reliably! Oh, oops, turned out I only had one more case of it left to do."

                TERRIFIED OF RUNNING OFF THE RUNWAY: "This is a one-off, so it would be a waste of time to automate it, I'll just do it manually."
                [next day] "Oh, oops, I made a mistake and have to do it again. But it should be fine this time."
                [a month later] "Even though I've had to redo it 25 times already, surely _this_ is the last time? So it would still be a waste of time to automate it."

                pfmoore@mastodon.socialP This user is from outside of this forum
                pfmoore@mastodon.socialP This user is from outside of this forum
                pfmoore@mastodon.social
                wrote last edited by
                #11

                @simontatham

                REALITY: "Automating this 5 minute task is way more fun than doing it, so I'll spend all day automating it"

                1 Reply Last reply
                0
                • simontatham@hachyderm.ioS simontatham@hachyderm.io

                  When to automate a repetitive task:

                  NO-BRAINER: "This is obviously going to be faster to automate than to do it by hand _even once_. Let's automate it right now, and not do it by hand at all."

                  FORESIGHTED: "Doing it once by hand is faster than automating it, but I'm going to have to do it a lot of times, so it still saves time to automate it first."

                  NEED A RUN-UP: "I don't yet understand this task well enough to automate it, so I'll do it a few times by hand first to get the idea."

                  RAN OFF THE RUNWAY: "Great, now I've done this by hand a few times, I think I can automate it reliably! Oh, oops, turned out I only had one more case of it left to do."

                  TERRIFIED OF RUNNING OFF THE RUNWAY: "This is a one-off, so it would be a waste of time to automate it, I'll just do it manually."
                  [next day] "Oh, oops, I made a mistake and have to do it again. But it should be fine this time."
                  [a month later] "Even though I've had to redo it 25 times already, surely _this_ is the last time? So it would still be a waste of time to automate it."

                  arj@social.tchncs.deA This user is from outside of this forum
                  arj@social.tchncs.deA This user is from outside of this forum
                  arj@social.tchncs.de
                  wrote last edited by
                  #12

                  @simontatham I've ended up putting together a shell script that maintains markdown checklists and records executions and artefacts in a git repo. It allows me to hone messy processes over time to the point where they can largely be automated, while still documenting the necessary steps where reliable automation hasn't yet been achieved. It gives me a lot of comfort

                  Link Preview Image
                  GitHub - amboar/checklists

                  Contribute to amboar/checklists development by creating an account on GitHub.

                  favicon

                  GitHub (github.com)

                  1 Reply Last reply
                  0
                  • darkling@mstdn.socialD darkling@mstdn.social

                    @simontatham I'm a fan of the variant of "need a run-up", where you don't know what you're doing, but want to make sure that when you have to redo it, you redo the working steps the same way.

                    The best way of doing this is to write down the steps. In a script. So when you do get it working, you have most of your automation already written.

                    wolf480pl@mstdn.ioW This user is from outside of this forum
                    wolf480pl@mstdn.ioW This user is from outside of this forum
                    wolf480pl@mstdn.io
                    wrote last edited by
                    #13

                    @darkling
                    I've had tasks that:
                    - I know I'll need to do exactly 5 times
                    - are complicated
                    - have many unknown unknowns - many thngs could go wrong, but I don't know which ones
                    - any of those unknown unknowns could do a lot of damage

                    I don't automate those, since I can't do error handling for an error I can't anticipate.

                    I write down what I'm doing, with commands, including a lot of sanity checks, and what to expect from an output.

                    Then I repeat these steps by hand.
                    @simontatham

                    darkling@mstdn.socialD 1 Reply Last reply
                    0
                    • simontatham@hachyderm.ioS simontatham@hachyderm.io

                      When to automate a repetitive task:

                      NO-BRAINER: "This is obviously going to be faster to automate than to do it by hand _even once_. Let's automate it right now, and not do it by hand at all."

                      FORESIGHTED: "Doing it once by hand is faster than automating it, but I'm going to have to do it a lot of times, so it still saves time to automate it first."

                      NEED A RUN-UP: "I don't yet understand this task well enough to automate it, so I'll do it a few times by hand first to get the idea."

                      RAN OFF THE RUNWAY: "Great, now I've done this by hand a few times, I think I can automate it reliably! Oh, oops, turned out I only had one more case of it left to do."

                      TERRIFIED OF RUNNING OFF THE RUNWAY: "This is a one-off, so it would be a waste of time to automate it, I'll just do it manually."
                      [next day] "Oh, oops, I made a mistake and have to do it again. But it should be fine this time."
                      [a month later] "Even though I've had to redo it 25 times already, surely _this_ is the last time? So it would still be a waste of time to automate it."

                      darkrat@chaosfurs.socialD This user is from outside of this forum
                      darkrat@chaosfurs.socialD This user is from outside of this forum
                      darkrat@chaosfurs.social
                      wrote last edited by
                      #14

                      @simontatham

                      [puts together an automation after having to do it 30 times]

                      [never have to use it again]

                      1 Reply Last reply
                      0
                      • simontatham@hachyderm.ioS simontatham@hachyderm.io

                        When to automate a repetitive task:

                        NO-BRAINER: "This is obviously going to be faster to automate than to do it by hand _even once_. Let's automate it right now, and not do it by hand at all."

                        FORESIGHTED: "Doing it once by hand is faster than automating it, but I'm going to have to do it a lot of times, so it still saves time to automate it first."

                        NEED A RUN-UP: "I don't yet understand this task well enough to automate it, so I'll do it a few times by hand first to get the idea."

                        RAN OFF THE RUNWAY: "Great, now I've done this by hand a few times, I think I can automate it reliably! Oh, oops, turned out I only had one more case of it left to do."

                        TERRIFIED OF RUNNING OFF THE RUNWAY: "This is a one-off, so it would be a waste of time to automate it, I'll just do it manually."
                        [next day] "Oh, oops, I made a mistake and have to do it again. But it should be fine this time."
                        [a month later] "Even though I've had to redo it 25 times already, surely _this_ is the last time? So it would still be a waste of time to automate it."

                        geraldew@fosstodon.orgG This user is from outside of this forum
                        geraldew@fosstodon.orgG This user is from outside of this forum
                        geraldew@fosstodon.org
                        wrote last edited by
                        #15

                        @simontatham from the mix of these things is why I have my own tool for handling hundreds (if not thousands) of SQL scripts that I've been tinkering with for over 20 years.

                        Which means I can add an extra item to the list:
                        - having built a tool for doing some amount of the automation occurring in my work, gives me a head start each time a new need for automation becomes apparent.

                        I occasionally shock myself at how early that became true, seeing innovative components dated 2005 or so.

                        1 Reply Last reply
                        0
                        • wolf480pl@mstdn.ioW wolf480pl@mstdn.io

                          @darkling
                          I've had tasks that:
                          - I know I'll need to do exactly 5 times
                          - are complicated
                          - have many unknown unknowns - many thngs could go wrong, but I don't know which ones
                          - any of those unknown unknowns could do a lot of damage

                          I don't automate those, since I can't do error handling for an error I can't anticipate.

                          I write down what I'm doing, with commands, including a lot of sanity checks, and what to expect from an output.

                          Then I repeat these steps by hand.
                          @simontatham

                          darkling@mstdn.socialD This user is from outside of this forum
                          darkling@mstdn.socialD This user is from outside of this forum
                          darkling@mstdn.social
                          wrote last edited by
                          #16

                          @wolf480pl @simontatham If any damage isn't reversible, then absolutely.

                          I've mostly used my pattern in things like new data-ingest pipelines, where you can keep the original upstream data, and just nuke the interim stuff and try again if it all goes wrong.

                          1 Reply Last reply
                          0
                          • simontatham@hachyderm.ioS simontatham@hachyderm.io

                            When to automate a repetitive task:

                            NO-BRAINER: "This is obviously going to be faster to automate than to do it by hand _even once_. Let's automate it right now, and not do it by hand at all."

                            FORESIGHTED: "Doing it once by hand is faster than automating it, but I'm going to have to do it a lot of times, so it still saves time to automate it first."

                            NEED A RUN-UP: "I don't yet understand this task well enough to automate it, so I'll do it a few times by hand first to get the idea."

                            RAN OFF THE RUNWAY: "Great, now I've done this by hand a few times, I think I can automate it reliably! Oh, oops, turned out I only had one more case of it left to do."

                            TERRIFIED OF RUNNING OFF THE RUNWAY: "This is a one-off, so it would be a waste of time to automate it, I'll just do it manually."
                            [next day] "Oh, oops, I made a mistake and have to do it again. But it should be fine this time."
                            [a month later] "Even though I've had to redo it 25 times already, surely _this_ is the last time? So it would still be a waste of time to automate it."

                            ratsnakegames@mastodon.socialR This user is from outside of this forum
                            ratsnakegames@mastodon.socialR This user is from outside of this forum
                            ratsnakegames@mastodon.social
                            wrote last edited by
                            #17

                            @simontatham don't forget "if i automate this, i'll have to do something else that's worse"

                            1 Reply Last reply
                            0
                            • cunobaros@mendeddrum.orgC cunobaros@mendeddrum.org

                              @simontatham SEP field: This is a regular but infrequent task which we share in the team. It won't be my turn to do it again until December so I'll do it manually now and hope someone has automated it before then.

                              geraldew@fosstodon.orgG This user is from outside of this forum
                              geraldew@fosstodon.orgG This user is from outside of this forum
                              geraldew@fosstodon.org
                              wrote last edited by
                              #18

                              @cunobaros @simontatham I've certainly come into teams where it is apparent that has been the operating mode for some years.

                              1 Reply Last reply
                              0
                              • taneb@hacksrus.xyzT taneb@hacksrus.xyz
                                @simontatham and it can be really hard to tell the last three cases apart when you're in them
                                geraldew@fosstodon.orgG This user is from outside of this forum
                                geraldew@fosstodon.orgG This user is from outside of this forum
                                geraldew@fosstodon.org
                                wrote last edited by
                                #19

                                @Taneb @simontatham quite true but I can say I've had multiple "ran off the runway" cases where I coded a good solution and then had another instance crop up ten or fifteen years later.

                                So now I still default to making something once I feel I understand the problem-solution pair - even though I definitely won't be doing the work in ten years time.

                                1 Reply Last reply
                                0
                                • simontatham@hachyderm.ioS simontatham@hachyderm.io

                                  When to automate a repetitive task:

                                  NO-BRAINER: "This is obviously going to be faster to automate than to do it by hand _even once_. Let's automate it right now, and not do it by hand at all."

                                  FORESIGHTED: "Doing it once by hand is faster than automating it, but I'm going to have to do it a lot of times, so it still saves time to automate it first."

                                  NEED A RUN-UP: "I don't yet understand this task well enough to automate it, so I'll do it a few times by hand first to get the idea."

                                  RAN OFF THE RUNWAY: "Great, now I've done this by hand a few times, I think I can automate it reliably! Oh, oops, turned out I only had one more case of it left to do."

                                  TERRIFIED OF RUNNING OFF THE RUNWAY: "This is a one-off, so it would be a waste of time to automate it, I'll just do it manually."
                                  [next day] "Oh, oops, I made a mistake and have to do it again. But it should be fine this time."
                                  [a month later] "Even though I've had to redo it 25 times already, surely _this_ is the last time? So it would still be a waste of time to automate it."

                                  stonebear2@hachyderm.ioS This user is from outside of this forum
                                  stonebear2@hachyderm.ioS This user is from outside of this forum
                                  stonebear2@hachyderm.io
                                  wrote last edited by
                                  #20

                                  @simontatham Sometimes I'll do a task by hand the first time (and f*** it up a bit) and then go back and cherry-pick my shell history to write the automation, subbing in variables as I go... but yeah. Generally legit.

                                  1 Reply Last reply
                                  0
                                  • R relay@relay.an.exchange shared this topic
                                  Reply
                                  • Reply as topic
                                  Log in to reply
                                  • Oldest to Newest
                                  • Newest to Oldest
                                  • Most Votes


                                  • Login

                                  • Login or register to search.
                                  • First post
                                    Last post
                                  0
                                  • Categories
                                  • Recent
                                  • Tags
                                  • Popular
                                  • World
                                  • Users
                                  • Groups