Click here to Skip to main content
15,912,329 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
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 
That's comparable with writing your code like this:

kwif op( varCount op== num5 op)<br />
        funDoThis op( lit"Hello" op) ;


I don't think anyone who advocate Hungarian Notation would prefer this kind of language. And there your argument falls.

But to continue your comparisons with the English language:

If you would ask a lawyer, he would probably like to see some way in which to make it easier to interpret the language. I can present you sentences that can be interpreted in three different ways depending on the context. I'm not saying that your suggestion would help much here, but something that would give the kind of help that HN gives us programmers I think would be appreciated.

In Spanish (and probably other languages) they have the problem that two words that are spelled the same way mean different things. What they have done here is to put accents on some vowels to diferentiate the words -- even though you in most cases can tell what word it is from the context. Not the same as HN, but it's the same kind of "unnecessary" information added only to clarify.
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 
GeneralRe: Gool ol' Hungarian Pin
peterchen29-Nov-03 2:53
peterchen29-Nov-03 2:53 
GeneralOnly habits... Pin
andyj11524-Nov-03 2:14
andyj11524-Nov-03 2:14 
GeneralRe: Only habits... Pin
Anonymous24-Nov-03 8:32
Anonymous24-Nov-03 8:32 
GeneralRe: Only habits... Pin
Dimitris Vasiliadis25-Nov-03 9:22
Dimitris Vasiliadis25-Nov-03 9:22 
GeneralRe: Only habits... Pin
andyj11525-Nov-03 9:37
andyj11525-Nov-03 9:37 
GeneralRe: Only habits... Pin
Dimitris Vasiliadis25-Nov-03 20:06
Dimitris Vasiliadis25-Nov-03 20:06 
GeneralRe: Only habits... Pin
Navin25-Nov-03 9:47
Navin25-Nov-03 9:47 
GeneralRe: Only habits... Pin
John R. Shaw25-Nov-03 9:53
John R. Shaw25-Nov-03 9:53 
GeneralRe: Only habits... Pin
andyj11525-Nov-03 10:20
andyj11525-Nov-03 10:20 

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.