3

That feeling when you inherit a script to automate something that takes 10 seconds. Why would they even write this? It's not like the task is hard....

...

And why would they write it this way? I'm sure if I just move this part and ....

That feeling when you spend several hours improving and redesigning a perfectly functional script to automate a 10 second task for zero gain aside from cleaner code. "But the code for this quick-and-dirty script I'm never going to look at again looks so much better now!"

... If only it did a bunch of complicated parsing, regex matching, and error checking just so I can answer one less prompt.... Unless that parsing fails. Then it should still ask me for that prompt... And also validate that the answers I give are valid and correct....

That feeling when you spend a whole nother day starting from scratch to implement error checking and complex parsing logic knowing full well the original task takes 10 seconds to do manually and is needed at most twice a day (for a grand total of 20s a day)

WHY AM I LIKE THIS?!?!?!

Comments
  • 1
    10 second task?
    Not sure why you would need to spend the time to automate it, unless the previous dev read this and stuck to it.

    https://automatetheboringstuff.com/
  • 0
    @C0D4 I love that book! And it is a boring task, but also an easy one. I wasn't going to write anything for it. But I had this script so I might as well....

    And then I made the mistake of looking at the code.... It bothered me immensely. I could not allow it to exist in that form. To do so would be an injustice to the computing gods.
  • 1
    lool

    I just finished making a wrapper on an Api, thatI know deep down I will never be able to use.
    But I don't want to fully face that until after I'm done, because this wrapper is pretty cool.

    Took 2 weeks. And it'll go in the garbage probably.

    You're not alone!
  • 0
    Nothing is too small to automate. That's 20s per day, 100s per week, 5200s a year about 1.25(ish) hours. So you spent more time working on it than you saved in a year, doesn't matter, it's one fewer thing you have to deal with.
Add Comment