Click here to Skip to main content
15,889,863 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



 
GeneralRe: "try not to overthink thiings" ... with ii ... Pin
Bernhard Hiller24-May-22 21:34
Bernhard Hiller24-May-22 21:34 
GeneralRe: "try not to overthink thiings" ... with ii ... Pin
Gary R. Wheeler26-May-22 11:10
Gary R. Wheeler26-May-22 11:10 
GeneralCaching........ Don't right now. Pin
Ron Anders23-May-22 2:59
Ron Anders23-May-22 2:59 
GeneralI am careful with naming, though often clash with existing conventions Pin
den2k8822-May-22 23:49
professionalden2k8822-May-22 23:49 
GeneralCareful with naming - Always descriptive Pin
Slacker00722-May-22 22:04
professionalSlacker00722-May-22 22:04 
GeneralRe: Careful with naming - Always descriptive Pin
CHill6022-May-22 23:29
mveCHill6022-May-22 23:29 
GeneralRe: Careful with naming - Always descriptive Pin
trønderen24-May-22 0:19
trønderen24-May-22 0:19 
GeneralRe: Careful with naming - Always descriptive Pin
JP Reyes24-May-22 6:34
JP Reyes24-May-22 6:34 
Well there is an acceptable balance.
I come from the shorthand generation (and I'm kinda getting the hang of camelCase). I vaguely remember a convention about anything starting with uppercase is a function and lowercase is a variable, and it extends to objects as well (objects are just another form of data structure with pointers to functions)
That said, reading the context of a program, one can easily understand
gmTabWidgetL
to be "GeoMechanical tabulation widget, on the Left" (it's gui code). The word Geomechanical is in both a comment and in a text label before the code.
So that's pretty well documented I'd say.
But rather unfortunately Python doesn't use types to declare variables so figuring out that thing was an object requires some detective work in finding the assignment of the name and the object's constructor.

In the end I think people who can't be bothered with deducing a variable's full name or function, should consider alternative careers. Computer programming is about instructing the calculator what to do, not chatting with the layman.
GeneralOutdated options Pin
lmoelleb22-May-22 21:08
lmoelleb22-May-22 21:08 
GeneralMany more hard problems Pin
Patrick Van Cauteren22-May-22 21:50
Patrick Van Cauteren22-May-22 21:50 
GeneralRe: Many more hard problems Pin
Gary R. Wheeler23-May-22 14:22
Gary R. Wheeler23-May-22 14:22 
GeneralRe: Many more hard problems Pin
lmoelleb23-May-22 20:43
lmoelleb23-May-22 20:43 
GeneralRe: Many more hard problems Pin
trønderen24-May-22 0:59
trønderen24-May-22 0:59 
GeneralRe: Many more hard problems Pin
Julian Ragan24-May-22 8:45
Julian Ragan24-May-22 8:45 
GeneralRe: Many more hard problems Pin
Cpichols24-May-22 1:17
Cpichols24-May-22 1:17 
GeneralRe: Many more hard problems Pin
k505425-May-22 3:20
mvek505425-May-22 3:20 
General3 problems listed Pin
Shao Voon Wong22-May-22 20:43
mvaShao Voon Wong22-May-22 20:43 
GeneralRe: 3 problems listed Pin
den2k8822-May-22 23:46
professionalden2k8822-May-22 23:46 
GeneralRe: 3 problems listed Pin
Daniel Pfeffer23-May-22 0:57
professionalDaniel Pfeffer23-May-22 0:57 

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.