Click here to Skip to main content
15,911,531 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
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 
John A. Johnson wrote:
meaning of the A8768764 property in your class

The class is a simplified cropped example of a String class I had used, so no particular use in this specific class. Just on more line copied I guess...Big Grin | :-D
I just included it in the post as a small simple example to show that what can be good enough for a computer is unacceptable for the developer. The compiler will produce the same code no matter if you write comments or not, no matter if you use names like those or more human readable names.

It would take (to me at least) more time to understand and use a class like that in my code, than a similar class like the following:

typedef char* LPCHARDATA;<br />
<br />
class CCharData {<br />
public:<br />
CCharData() {m_nLength=0;}<br />
~CCharData() {}<br />
void SetStringData(LPCHARDATA lpszData) {m_lpszData = lpszData;}<br />
protected:<br />
int m_nLength;<br />
LPCHARDATA m_lpszData;<br />
};<br />



...Plug & Pray... Dead | X|
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 
GeneralRe: Only habits... Pin
John R. Shaw25-Nov-03 10:46
John R. Shaw25-Nov-03 10:46 
GeneralRe: Only habits... Pin
andyj11526-Nov-03 2:05
andyj11526-Nov-03 2:05 
GeneralRe: Only habits... Pin
John R. Shaw27-Nov-03 8:14
John R. Shaw27-Nov-03 8:14 
GeneralHungarian, but a simple version Pin
Anonymous24-Nov-03 1:56
Anonymous24-Nov-03 1:56 
GeneralRe: Hungarian, but a simple version Pin
Anonymous25-Nov-03 9:14
Anonymous25-Nov-03 9:14 
GeneralRadiobuttons not adequate for this question Pin
jhwurmbach24-Nov-03 1:35
jhwurmbach24-Nov-03 1:35 
GeneralThis poll is silly Pin
dog_spawn24-Nov-03 6:45
dog_spawn24-Nov-03 6:45 
GeneralC++ is so rich in types... Pin
Bamaco224-Nov-03 0:43
Bamaco224-Nov-03 0:43 
GeneralRe: C++ is so rich in types... Pin
Paul Watson24-Nov-03 5:26
sitebuilderPaul Watson24-Nov-03 5:26 
GeneralRe: C++ is so rich in types... Pin
Bamaco224-Nov-03 9:05
Bamaco224-Nov-03 9:05 
GeneralRe: C++ is so rich in types... Pin
JaniOrca25-Nov-03 1:44
JaniOrca25-Nov-03 1:44 
GeneralDepends Pin
Thomas Freudenberg23-Nov-03 19:54
Thomas Freudenberg23-Nov-03 19:54 
Generalnotation per language Pin
SimonS23-Nov-03 19:05
SimonS23-Nov-03 19:05 
GeneralComments Pin
J. Dunlap23-Nov-03 18:46
J. Dunlap23-Nov-03 18:46 

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.