Vent: a guy on a Discord review of my first Python script tore it apart line by line
I posted my little weather app script in a beginner Discord last month and one guy replied with 14 separate comments on it, one for almost every line. He pointed out I was re-typing the same API call in three places and showed me how to store it in a variable once. I spent a Saturday in my kitchen in Fresno rewriting the whole thing and it went from 80 lines down to 41, and it actually got easier to read. Now I try to run my code before posting it, which sounds dumb but I never did that before. How do you all handle tough feedback on code you were kind of proud of?