Click here to Skip to main content
15,886,799 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 
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 PinPopular
Gary R. Wheeler23-May-22 14:19
Gary R. Wheeler23-May-22 14:19 
I have a product which I'm now responsible for that was written by an asshat who followed the option in the subject line. He deliberately wrote the code such that he was the only person who could maintain it. It's written in early 1970's vintage C, even though the product was started in 1990. Everything is global. There are types and variable names that are single, lower-case characters. Most identifiers are 6 characters or less. Source file names do not denote their contents. Header files do not declare the functions in the corresponding source files, if they even exist. Function prototyping isn't used - at all. The wacky guy even redefines #define'd constants in windows.h because "Microsoft did it wrong".

This product was not under active development, so management assigned the guy to another product. For six months he refused to do any work. At the end of that time he was 'spoken to', and responded by retiring with no prior notice.

I've made exactly one change to this product, to replace support for some obsolescent hardware. It took over 100 hours of preparatory analysis to locate and verify all of the potential side effects, and a little over 4 hours to code, debug, and test the replacement.

I've been a professional programmer for a little over 42 years. In all that time I've worked with people I didn't like, but I've only hated one: this guy.
Software Zen: delete this;

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.