Am I the only one who didn't know you could name your loop variables poorly and nobody yells at you?
I posted my little tip calculator on r/learnpython and someone named dev_marcus replied with just one line: "why is everything called thing and thing2." I felt stupid for a minute, then renamed all my variables to stuff like total_bill and tip_rate, and suddenly I could read my own code a week later. Now I catch myself doing it with functions too. Does anyone have a habit from early learning that a random stranger fixed with one comment?
Why does it have to be a random stranger who fixes it though? Most of the time the person who points out your bad habit is someone who barely knows you, and honestly that stings more than it helps. I had a coworker tell me my function names were "aggressively vague" in a code review and I spent the whole day annoyed about it, even though he was right. The nicer version is when a friend walks you through why it matters, like my buddy showing me how he names things so six months later he still knows what's going on. Dev_marcus dropping one line and leaving is kind of a lousy way to help someone, even if the tip was solid.