Click here to Skip to main content
15,898,371 members

Survey Results

Coding style: How do you name your local variables?   [Edit]

Survey period: 3 Apr 2006 to 9 Apr 2006

What's your convention de jour for your locals?

OptionVotes% 
Pascal Cased17110.56
camel Cased70243.36
Fixed letter prefix (eg lLocal)815.00
Hungarian prefix (eg strLocal)48229.77
Scope prefix (eg l_Local)362.22
Scope and Hungarian prefix (eg l_strLocal)1257.72

View optional text answers (100 answers)


 
Generalan underscore and plain english (camel case) Pin
fabulous7-Apr-06 16:10
fabulous7-Apr-06 16:10 
GeneralHN Pin
vobject7-Apr-06 1:53
vobject7-Apr-06 1:53 
GeneralJust us GUIDs Pin
Troy Marchand6-Apr-06 18:23
sitebuilderTroy Marchand6-Apr-06 18:23 
JokeI don't have local variables Pin
Marek.T6-Apr-06 11:52
Marek.T6-Apr-06 11:52 
GeneralK.I.S.S. Pin
David Veeneman6-Apr-06 9:27
David Veeneman6-Apr-06 9:27 
GeneralRe: K.I.S.S. Pin
Alvaro Mendez7-Apr-06 5:08
Alvaro Mendez7-Apr-06 5:08 
GeneralUsing C# .Net then use Microsoft's Pin
Daniel Vaughan6-Apr-06 3:22
Daniel Vaughan6-Apr-06 3:22 
JokeUsing C++ and using C# style Pin
FocusedWolf7-Apr-06 5:22
FocusedWolf7-Apr-06 5:22 
Well i got into c# first before getting to know c++, so now i write my c++ classes with the attitude of trying to make it more C# like...If i got a public variable, i capitialize its first letter to make it like a c# property...private variables are lower case on first letter with each word after starting with upper case.

I hate hungarian to...i think it was invented for back when code was written in a notepad setting...like what kinda noob would do that now (thinks of some linux code tools that are nothing but elaborate textpads)... basically cause you didn't have something like intellisense that could tell you what type of variable something was without looking for where it was declared... now hungarian is just noise in the code! (IMHO)

C# style is as good as code can appear to me lol

thx for link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconNamingGuidelines.asp

now when i work on a c++ game project, and invite other members, i can say...THIS is the style!!! Laugh | :laugh:
GeneralRe: Using C++ and using C# style Pin
vobject9-Apr-06 21:42
vobject9-Apr-06 21:42 
GeneralMe Pin
Trance Junkie4-Apr-06 23:51
Trance Junkie4-Apr-06 23:51 
GeneralRe: Me Pin
Bob Stanneveld5-Apr-06 23:34
Bob Stanneveld5-Apr-06 23:34 
GeneralRe: Me Pin
Malik Nasir31-May-06 0:07
Malik Nasir31-May-06 0:07 
GeneralMy use of "Scope and Hungarian prefix" Pin
Kochise4-Apr-06 21:40
Kochise4-Apr-06 21:40 
GeneralDatagrid new line Pin
Macky1004-Apr-06 3:26
Macky1004-Apr-06 3:26 
GeneralRe: Datagrid new line Pin
Arch4ngel4-Apr-06 10:52
Arch4ngel4-Apr-06 10:52 
GeneralCListCtrl Pin
Phil J Pearson4-Apr-06 1:11
Phil J Pearson4-Apr-06 1:11 
GeneralX Pin
thrakazog3-Apr-06 9:17
thrakazog3-Apr-06 9:17 
GeneralRe: X Pin
Rohit Wason3-Apr-06 9:58
Rohit Wason3-Apr-06 9:58 
GeneralRe: X Pin
Gary R. Wheeler3-Apr-06 15:40
Gary R. Wheeler3-Apr-06 15:40 
GeneralV Pin
hairy_hats7-Apr-06 5:19
hairy_hats7-Apr-06 5:19 
GeneralRe: X Pin
toxcct4-Apr-06 0:58
toxcct4-Apr-06 0:58 
GeneralRe: X Pin
KarstenK4-Apr-06 2:58
mveKarstenK4-Apr-06 2:58 
GeneralRe: X Pin
KevinHall4-Apr-06 4:59
KevinHall4-Apr-06 4:59 
GeneralRe: X Pin
WillemM5-Apr-06 21:09
WillemM5-Apr-06 21:09 
GeneralRe: X Pin
KevinHall6-Apr-06 7:57
KevinHall6-Apr-06 7: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.