R
21

Why does nobody talk about how important it is to name your variables clearly?

I saw a student's code yesterday where everything was just 'a', 'b', and 'x', and it took me 10 minutes to figure out what it did. What's the worst variable name you've ever seen someone use?
2 comments

Log in to join the discussion

Log In
2 Comments
jenny_jackson
Worst I ever saw? My own code from last year. Had a variable named 'temp'. It was the user's permanent address.
5
harper_smith
Actually, that's a pretty good name if the address is temporary.
-1