🐿️
25

My variable names caused more confusion than they solved

I named all my variables short things like x and y to save time. Now I can't remember what anything does when I go back to fix a bug. How do you pick names that are clear but not too long?
2 comments

Log in to join the discussion

Log In
2 Comments
blake210
blake2101d ago
Ever try naming them after what the data actually is?
2
evanpalmer
But naming things perfectly is its own kind of hell, right? These debates turn into hour long meetings where people argue over "userData" versus "accountInfo." At some point you just need a variable that works.
4