PSA: my TA marked up my first Python script with 14 red comments and I almost quit
I turned in my first real Python script for an intro class at the community college in Sacramento last month and got it back with 14 red comments from the TA. The one that stuck was her note on my variable names, she wrote something like "what is x2 doing here, name it what it actually holds." I had like 40 lines where every variable was a letter or a letter plus a number and it made sense to me at 1am. She also pointed out I copied the same 3 lines of file reading at the top of 4 different functions. I grumbled for a day, then went back through and renamed stuff and pulled that repeated code into one helper. My script got shorter and I could actually read it a week later, which never happens for me. Still not sure how much of this is worth the fuss when the thing runs, though. Do you all go back and clean up your beginner code or just move on to the next project?