Thread: var names
View Single Post
Old May 8th, 2006, 2:47 PM   #14
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
Quote:
Originally Posted by Cache
I usually start the variable names with the first letter(s) of it's type.

e.g:
char chLetter;
char szText[10];
char* pszText;
std::string strText;
int iMax;
bool bIsSomething;
... ect.
Yeah, that's usually the way I do it too. It's a good habit because then you know what type the var is. I think that's the way professionals do it as well don't they? Simply because it's easier to understand the code when looking at soemone elses. Sometimes, mine are all over the place
Booooze is offline   Reply With Quote