Click here to Skip to main content
15,914,481 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)


 
GeneralText Answers Pin
J. Dunlap30-Nov-03 11:20
J. Dunlap30-Nov-03 11:20 
GeneralI WAS WONDERING Pin
Jörgen Sigvardsson30-Nov-03 10:37
Jörgen Sigvardsson30-Nov-03 10:37 
GeneralThat's because Pin
Nick Seng30-Nov-03 14:28
Nick Seng30-Nov-03 14:28 
GeneralIt depends on the language too Pin
Sebastián Benítez28-Nov-03 15:13
Sebastián Benítez28-Nov-03 15:13 
GeneralIt depends on where we use Pin
Sarvesvara (BVKS) Dasa28-Nov-03 1:34
Sarvesvara (BVKS) Dasa28-Nov-03 1:34 
GeneralRe: It depends on where we use Pin
Jörgen Sigvardsson29-Nov-03 8:01
Jörgen Sigvardsson29-Nov-03 8:01 
GeneralCamel Caps looks like UML naming conventions Pin
Anonymous27-Nov-03 8:51
Anonymous27-Nov-03 8:51 
GeneralReligion Pin
Anonymous26-Nov-03 22:27
Anonymous26-Nov-03 22:27 
GeneralRe: Religion Pin
Goh Choon Liang2-Dec-03 5:48
Goh Choon Liang2-Dec-03 5:48 
GeneralHungarian and Camel Pin
Matt Newman26-Nov-03 5:42
Matt Newman26-Nov-03 5:42 
GeneralRe: Hungarian and Camel Pin
Navin26-Nov-03 15:29
Navin26-Nov-03 15:29 
GeneralRe: Hungarian and Camel Pin
Matt Newman27-Nov-03 12:18
Matt Newman27-Nov-03 12:18 
GeneralRe: Hungarian and Camel Pin
Navin27-Nov-03 16:04
Navin27-Nov-03 16:04 
GeneralRe: Hungarian and Camel Pin
Matt Newman28-Nov-03 5:44
Matt Newman28-Nov-03 5:44 
GeneralRe: Hungarian and Camel Pin
Anonymous28-Nov-03 19:50
Anonymous28-Nov-03 19:50 
GeneralIt ain't about Pin
Jörgen Sigvardsson25-Nov-03 10:45
Jörgen Sigvardsson25-Nov-03 10:45 
GeneralRe: It ain't about Pin
Paul Watson25-Nov-03 20:29
sitebuilderPaul Watson25-Nov-03 20:29 
GeneralRe: It ain't about Pin
Jörgen Sigvardsson25-Nov-03 23:25
Jörgen Sigvardsson25-Nov-03 23:25 
GeneralRe: It ain't about Pin
Andrey197328-Nov-03 8:21
Andrey197328-Nov-03 8:21 
As I noticed some discussions here and also in real life people usually say that what they have it`s best even if they know it isn`t. I`t the way people think. If they have a bad car they`d say anything that makes it look good even if they don`t believe it. Same applies here. The people who use hungarian say it`s best and ppl who use camel say that`s better. I used to programm in vc++ using hungarian and then when I tryed c# and camel I saw it was better than what I was doing before. I was getting tired of calling m_strVariable and m_img and so on in my code. In functions I even had to replace m_nPointCount for example for a local variable count or smth like that. Hungarian can be usefull to tell the variable types appart but when you really starter programming you realise that camel is better. No excess typing. With good naming you can obtain type recognition results same as hungarian with less code. Some programmers that used hungarian with c++ for years got used to it and aren`t even thinking of giving it up. I was the same but when I tried c# with camel I realised that it was nicer. The ones that haven`t tried both types in my oppinion shouldn`t comment on wich is best because for sure they`ll say best is the one they`re using. I tried both. Camel is nicer for typing and aspect.
GeneralRe: It ain't about Pin
Jörgen Sigvardsson28-Nov-03 11:13
Jörgen Sigvardsson28-Nov-03 11:13 
GeneralRe: It ain't about Pin
J. Dunlap29-Nov-03 10:29
J. Dunlap29-Nov-03 10:29 
GeneralRe: It ain't about Pin
obelisk2929-Nov-03 10:17
obelisk2929-Nov-03 10:17 
GeneralRe: It ain't about Pin
Jörgen Sigvardsson29-Nov-03 10:24
Jörgen Sigvardsson29-Nov-03 10:24 
GeneralMY conventions... Pin
Navin25-Nov-03 5:03
Navin25-Nov-03 5:03 
GeneralRe: MY conventions... Pin
Sarvesvara (BVKS) Dasa28-Nov-03 1:44
Sarvesvara (BVKS) Dasa28-Nov-03 1:44 

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.