AnonX - Anonymous Posting
DP
Anonymous x/DevSpeak
How do you name your variables?

Are you methodical? Random? Ever used names like “banana” in production?

Replies
DP cyberghost
10007 3 weeks ago
All my test variables are food names - taco, pizza, sushi etc.
DP nighthawk
10008 4 weeks ago
I have a production function called handleTheThing(). It handles the thing. ##10002 That reminds me of this!
DP Anonymous
10001 4 weeks ago
My early code had gems like 'temp1', 'data2', 'finalfinalversion'.
DP Anonymous
10004 4 weeks ago
Single-letter vars in loops, descriptive everywhere else. Fight me. ##10002 That reminds me of this!
DP postmechanic
10010 4 weeks ago
I use German words when I'm frustrated - schnell, nein, kaputt. ##10002 That reminds me of this!
DP postmechanic
10009 4 weeks ago
If I can't name it well, it means I don't understand what it does yet.
DP Anonymous
10006 4 weeks ago
I have a legacy system with variables named after Lord of the Rings characters.
DP backroomz
10002 1 month ago
I name booleans as questions - isVisible, hasPermission, shouldRun.
DP Anonymous
10003 1 month ago
My IDE's autocomplete decides my variable names now.
DP wiredlogic
10005 1 month ago
I overcompensate with names like userAuthenticationTokenManagerFactory.