F
10

My friend said my code looked like alphabet soup and I finally get why

I was showing him a Python script I wrote to sort my movie list. He stared at it for a minute and said, 'Dude, your variable names are just letters. What does 'x' even hold?' I had things like 'a', 'b', and 'c' everywhere. The next day, I went back and changed them all to real names like 'movie_title' and 'release_year'. Suddenly, I could actually read my own work a week later. Has anyone else had to fix a habit like that?
3 comments

Log in to join the discussion

Log In
3 Comments
wade_dixon
Time travel tax" is such a perfect way to describe that pain lol.
8
rivera.hannah
Yeah, the part about reading your own work a week later really hits home. I read a blog post once that called bad variable names "time travel tax" because you pay for it later when you're confused. It's so true, changing a few letters to real words saves so much headache. I still catch myself using 'temp' for everything and have to go back and fix it.
1
rosepark
rosepark4d ago
What's the worst "time travel tax" you've paid, @wade_dixon?
3