• 0 Posts
  • 1 Comment
Joined 2 years ago
cake
Cake day: June 15th, 2023

help-circle
  • Only sorta related, but now I have an excuse to tell my anecdote…

    One job ago I had a manager who decided that he would convert some of our helper scripts from bash to Python for reasons. I was new there and so didn’t realize what he was doing, or that he had started the process just as I was going through orientation. However, I ended up being the reviewer for the PR.

    This was the worst Python I had ever seen but in such odd ways and it mostly worked. It almost felt like it was written by someone who knew bash really well but had never learned any other languages, or thought that bash was just so damn good that he wanted to turn every other language into it. For example, instead of using argparse he was manually looping through argv and parsing them one at a time. And instead of using a standard for each in foo loop, there were index variables and while loops. And certainly there were no comprehensions or any understanding of the basic built in data structures other than using lists as arrays.

    So I did a review, assuming that this person was just really new to python and tried to gently coach him towards basic Pythonisms. His response was: “Oh yeah, I just ran them through ChatGPT and assumed it was all ok.”

    I quit about two months later.