Click here to Skip to main content
15,899,314 members

Survey Results

Naming conventions in your code   [Edit]

Survey period: 31 Jan 2005 to 6 Feb 2005

What notations do you use when naming variables? (And have things changed since we first asked back in 2003?)

OptionVotes% 
Hungarian notation with prefixes (strFirstName, m_nNumber etc)77140.86
Hungarian notation without prefixes ( _nNumber etc)492.60
Camel Caps (numberOfDays, isValid etc)72538.42
Pascal case (BackColor, DataSet)22511.92
C-style (this_is_a_variable)492.60
FORTRAN case (all caps)30.16

View optional text answers (82 answers)


 
GeneralRe: misspellings Pin
Jörgen Sigvardsson1-Feb-05 11:17
Jörgen Sigvardsson1-Feb-05 11:17 
GeneralRe: misspellings Pin
David Wulff2-Feb-05 5:34
David Wulff2-Feb-05 5:34 
GeneralRe: misspellings Pin
Ravi Bhavnani5-Feb-05 9:32
professionalRavi Bhavnani5-Feb-05 9:32 
GeneralApparently... Pin
Gary Kirkham1-Feb-05 4:18
Gary Kirkham1-Feb-05 4:18 
GeneralRe: Apparently... Pin
toxcct1-Feb-05 6:16
toxcct1-Feb-05 6:16 
GeneralRe: Apparently... Pin
Gary Kirkham2-Feb-05 3:37
Gary Kirkham2-Feb-05 3:37 
GeneralRe: Apparently... Pin
toxcct2-Feb-05 4:42
toxcct2-Feb-05 4:42 
GeneralRe: Apparently... Pin
Rick Crone2-Feb-05 9:46
Rick Crone2-Feb-05 9:46 
Gary Kirkham wrote:
am not sure what that means, however, if one of my programs has a bug then I don't know about it...because any bugs that ARE found are corrected immediately...and if my program has a known bug, then, by my definition, it is not a working program. So my statement is true based on my stipulations. I cannot evaluate your statement due to lack of understanding on my part.

Not true! Some year ago I had a Medical billing program that worked correctly until I notice a bug and fix it... there was another bug that I didn't find at that time that acutally made the application work correctly. So two wrongs made a right and the buggy program was a working program!
GeneralRe: Apparently... Pin
Gary Kirkham2-Feb-05 10:16
Gary Kirkham2-Feb-05 10:16 
GeneralGO HUNGARIAN! Pin
Michael Dunn1-Feb-05 3:48
sitebuilderMichael Dunn1-Feb-05 3:48 
GeneralRe: GO HUNGARIAN! Pin
Marc Clifton1-Feb-05 3:50
mvaMarc Clifton1-Feb-05 3:50 
GeneralRe: GO HUNGARIAN! Pin
Nemanja Trifunovic1-Feb-05 5:15
Nemanja Trifunovic1-Feb-05 5:15 
GeneralRe: GO HUNGARIAN! Pin
toxcct1-Feb-05 6:15
toxcct1-Feb-05 6:15 
GeneralRe: GO HUNGARIAN! Pin
Ravi Bhavnani2-Feb-05 3:30
professionalRavi Bhavnani2-Feb-05 3:30 
GeneralRe: GO HUNGARIAN! Pin
Alvaro Mendez3-Feb-05 5:42
Alvaro Mendez3-Feb-05 5:42 
GeneralNow this is too far. Pin
Prakash Nadar1-Feb-05 0:24
Prakash Nadar1-Feb-05 0:24 
GeneralRe: Now this is too far. Pin
mlkeS1-Feb-05 15:38
mlkeS1-Feb-05 15:38 
Generalold habits die hard :) Pin
feline_dracoform31-Jan-05 23:58
feline_dracoform31-Jan-05 23:58 
GeneralMix Pascal+Camel Pin
BlackTigerAP31-Jan-05 9:03
BlackTigerAP31-Jan-05 9:03 
GeneralRe: Mix Pascal+Camel Pin
Alexsander Antunes31-Jan-05 23:52
professionalAlexsander Antunes31-Jan-05 23:52 
Generalfunctional names and scope prefix Pin
Jesse Evans31-Jan-05 7:20
Jesse Evans31-Jan-05 7:20 
GeneralRe: functional names and scope prefix Pin
Bamaco231-Jan-05 9:55
Bamaco231-Jan-05 9:55 
Generalhow about "as short as possible" ? Pin
stephen.hazel31-Jan-05 4:57
stephen.hazel31-Jan-05 4:57 
GeneralRe: how about "as short as possible" ? Pin
Nitron31-Jan-05 5:50
Nitron31-Jan-05 5:50 
GeneralRe: how about "as short as possible" ? Pin
stephen.hazel31-Jan-05 6:39
stephen.hazel31-Jan-05 6:39 

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.