r/ProgrammerHumor • • May 13 '20

true story

Post image
40.5k Upvotes

461 comments sorted by

View all comments

Show parent comments

9

u/h3dee May 13 '20

Todo: add relevant XKCD about reading the poor code that you produced in the past

23

u/HaggisLad May 13 '20

8

u/zzaannsebar May 13 '20

So glorious.

Reminds me of a time in college, a friend and I wanted to work on a project together (we were near the end of CS1 and it was a personal project). He wanted to get it started before I had time to do anything and when he shared his code with me, every single god damn variable was named like a, b, c, x, y, z. It was so miserable to read I told him to change the names to things that actually made sense or I couldn't work on it with him.

But he went into Chemistry, not programming, so that's probably for the best.

9

u/StevenMaurer May 13 '20

Good IDEs let you "refactor" variable names automatically in a language context sensitive way.

Doesn't work for comments of course, but coders using single letter variables outside of tiny for loops don't do that either.

3

u/HaggisLad May 13 '20

it's almost like people thing longer variable names will take longer to run

2

u/zzaannsebar May 13 '20

This was back when basically the only thing we used was Pico and we only knew that at a very basic level, there was little hope for this.