Old dev at a coffee shop taught me to write code for the next person reading it
I was at a Starbucks near my apartment last month, stuck on a Python script that worked but looked like a mess. A guy in his 50s saw me staring at my laptop and asked what I was building. He didn't offer to fix it, but he said something that stuck with me: 'Code is read way more than it's written, so write for the person who has to read it at 2am.' He showed me how he names his variables, like using 'customer_list' instead of 'x' and adding short comments before tricky loops. I went home and rewrote that whole script in an hour, and it made debugging so much easier. Has anyone else had a random stranger give them advice that totally shifted how you code?