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

Survey Results

Naming conventions in your code   [Edit]

Survey period: 24 Nov 2003 to 30 Nov 2003

What notations do you use when coding?

OptionVotes% 
Hungarian notation with prefixes (strFirstName, m_nNumber etc)76150.13
Hungarian notation without prefixes ( _nNumber etc)432.83
Camel Caps (numberOfDays, isValid etc)46230.43
Pascal case (BackColor, DataSet)17911.79

View optional text answers (92 answers)


 
GeneralRe: Gool ol' Hungarian Pin
Bamaco224-Nov-03 9:15
Bamaco224-Nov-03 9:15 
GeneralRe: Gool ol' Hungarian Pin
Tim Smith25-Nov-03 16:52
Tim Smith25-Nov-03 16:52 
GeneralRe: Gool ol' Hungarian Pin
dog_spawn24-Nov-03 6:48
dog_spawn24-Nov-03 6:48 
GeneralRe: Gool ol' Hungarian Pin
Ravi Bhavnani24-Nov-03 7:00
professionalRavi Bhavnani24-Nov-03 7:00 
GeneralRe: Gool ol' Hungarian Pin
Nemanja Trifunovic24-Nov-03 9:32
Nemanja Trifunovic24-Nov-03 9:32 
GeneralRe: Gool ol' Hungarian Pin
Ravi Bhavnani24-Nov-03 9:37
professionalRavi Bhavnani24-Nov-03 9:37 
GeneralRe: Gool ol' Hungarian Pin
John Khodabakhshian24-Nov-03 13:49
John Khodabakhshian24-Nov-03 13:49 
GeneralRe: Gool ol' Hungarian Pin
Julien26-Nov-03 11:49
Julien26-Nov-03 11:49 
Actually
strFirstName tells me its a string objects
whereas
szFirstName tells me its a char array.

I know its small, but these little things help.

Also, FirstName is going to be a string object or char array, fine
but consistancy in convention is more important than the convention itself.

So if you are going to use str..., sz... n... d... whatever, then you should use it everywhere, even in FirstName.

Jules
GeneralRe: Gool ol' Hungarian Pin
J.B27-Nov-03 14:42
J.B27-Nov-03 14:42 
GeneralRe: Gool ol' Hungarian Pin
Julien27-Nov-03 15:35
Julien27-Nov-03 15:35 
GeneralRe: Gool ol' Hungarian Pin
J.B27-Nov-03 16:20
J.B27-Nov-03 16:20 
GeneralRe: Gool ol' Hungarian Pin
ashleyb27-Nov-03 13:16
ashleyb27-Nov-03 13:16 
GeneralRe: Gool ol' Hungarian Pin
Blake Miller24-Nov-03 10:54
Blake Miller24-Nov-03 10:54 
GeneralRe: Gool ol' Hungarian Pin
Alvaro Mendez24-Nov-03 9:17
Alvaro Mendez24-Nov-03 9:17 
GeneralRe: Gool ol' Hungarian Pin
Ravi Bhavnani24-Nov-03 9:40
professionalRavi Bhavnani24-Nov-03 9:40 
GeneralRe: Gool ol' Hungarian Pin
Mike Osbahr27-Nov-03 4:55
Mike Osbahr27-Nov-03 4:55 
GeneralRe: Gool ol' Hungarian Pin
Anonymous27-Nov-03 9:09
Anonymous27-Nov-03 9:09 
GeneralRe: Gool ol' Hungarian Pin
Alvaro Mendez28-Nov-03 5:20
Alvaro Mendez28-Nov-03 5:20 
GeneralRe: Gool ol' Hungarian Pin
Shog924-Nov-03 14:27
sitebuilderShog924-Nov-03 14:27 
GeneralHungarian is evil Pin
Navin25-Nov-03 4:54
Navin25-Nov-03 4:54 
GeneralRe: Hungarian is evil Pin
Tim Smith25-Nov-03 16:54
Tim Smith25-Nov-03 16:54 
GeneralRe: Hungarian is evil Pin
Navin26-Nov-03 3:16
Navin26-Nov-03 3:16 
GeneralRe: Gool ol' Hungarian Pin
deo25-Nov-03 12:15
deo25-Nov-03 12:15 
GeneralRe: Gool ol' Hungarian Pin
Patje25-Nov-03 22:58
Patje25-Nov-03 22:58 
GeneralRe: Gool ol' Hungarian Pin
Mehdi Mousavi26-Nov-03 1:40
Mehdi Mousavi26-Nov-03 1:40 

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.