Click here to Skip to main content
15,868,016 members

Survey Results

How important is naming to you in your code?

Survey period: 23 May 2022 to 30 May 2022

There are 2 hard problems in Computer Science: caching, naming and off-by-one errors

OptionVotes% 
I am obsessive and consumed with getting naming right657.80
I am very, very careful with naming23227.85
I do my best, but try not to over-think thiings46956.30
I don't really give it too much thought. Whatever name pops into my head is fine384.56
I really don't care. 26 letters in the alphabet, 26 names, right?40.48
I'm deliberately malicious, obfuscating, and / or sarcastic with my naming50.60
I don't understand what this "naming" thing refers to.202.40



 
GeneralAntisthene Pin
Stylianos Polychroniadis29-May-22 12:36
Stylianos Polychroniadis29-May-22 12:36 
Generalid vs Id vs ID vs entityId vs entityID... Pin
Afzaal Ahmad Zeeshan27-May-22 3:52
professionalAfzaal Ahmad Zeeshan27-May-22 3:52 
It's after years and years that you really understand, they're all the same and nobody cares what you use. :facepalm:

On the important note: I just put whatever makes sense. In an object itself, "Id" (or ID, or id—for some languages as their casing goes) is enough. But when building a relationship, I put the name of the reference table.

As for the variables (in the type, loop, etc.) I do try to make as much sense as I could, but iDontTryToElongateTheVariableNameJustForSomeReadability.

Besides, why make that many variables? Offload the stuff, using polymorphism, inheritance, composition, etc. They are there for a reason, right?
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~

GeneralRe: id vs Id vs ID vs entityId vs entityID... Pin
obermd27-May-22 17:23
obermd27-May-22 17:23 
GeneralLet's collect bad examples... Pin
Bernhard Hiller24-May-22 22:01
Bernhard Hiller24-May-22 22:01 
GeneralRe: Let's collect bad examples... Pin
CodeWraith25-May-22 3:46
CodeWraith25-May-22 3:46 
GeneralRe: Let's collect bad examples... Pin
Greg Utas25-May-22 11:44
professionalGreg Utas25-May-22 11:44 
GeneralRe: Let's collect bad examples... Pin
Gary R. Wheeler26-May-22 11:11
Gary R. Wheeler26-May-22 11:11 
GeneralRe: Let's collect bad examples... Pin
Greg Utas26-May-22 11:30
professionalGreg Utas26-May-22 11:30 
GeneralI'm not writing poetry! Pin
CodeWraith24-May-22 9:17
CodeWraith24-May-22 9:17 
GeneralI don't overthink. I just name my variables in most descriptive way possible Pin
Julian Ragan24-May-22 8:36
Julian Ragan24-May-22 8:36 
GeneralVelocity -> Acceleration Pin
Amarnath S24-May-22 5:39
professionalAmarnath S24-May-22 5:39 
GeneralEarly Days Pin
CodeZombie6224-May-22 1:08
CodeZombie6224-May-22 1:08 
Generaldebuging d or dd Pin
maze323-May-22 22:45
professionalmaze323-May-22 22:45 
GeneralxxId, ID, Code, Type, Key ... what to do? Pin
Gerry Schmitz23-May-22 16:16
mveGerry Schmitz23-May-22 16:16 
GeneralRe: xxId, ID, Code, Type, Key ... what to do? Pin
trønderen24-May-22 1:01
trønderen24-May-22 1:01 
GeneralRe: xxId, ID, Code, Type, Key ... what to do? Pin
Gerry Schmitz24-May-22 15:13
mveGerry Schmitz24-May-22 15:13 
GeneralI'm deliberately malicious, obfuscating, and / or sarcastic with my naming Pin
Gary R. Wheeler23-May-22 14:19
Gary R. Wheeler23-May-22 14:19 
GeneralRe: I'm deliberately malicious, obfuscating, and / or sarcastic with my naming Pin
Julian Ragan24-May-22 8:50
Julian Ragan24-May-22 8:50 
GeneralRe: I'm deliberately malicious, obfuscating, and / or sarcastic with my naming Pin
Gary R. Wheeler24-May-22 13:12
Gary R. Wheeler24-May-22 13:12 
GeneralRe: I'm deliberately malicious, obfuscating, and / or sarcastic with my naming Pin
obermd27-May-22 17:25
obermd27-May-22 17:25 
GeneralRe: I'm deliberately malicious, obfuscating, and / or sarcastic with my naming Pin
K Personett25-May-22 2:06
K Personett25-May-22 2:06 
GeneralRe: I'm deliberately malicious, obfuscating, and / or sarcastic with my naming Pin
Amarnath S26-May-22 6:37
professionalAmarnath S26-May-22 6:37 
GeneralI hate it.... Pin
0x01AA23-May-22 11:54
mve0x01AA23-May-22 11:54 
GeneralRe: I hate it.... Pin
trønderen24-May-22 1:15
trønderen24-May-22 1:15 
General"try not to overthink thiings" ... with ii ... Pin
Mike (Prof. Chuck)23-May-22 5:06
professionalMike (Prof. Chuck)23-May-22 5:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.