Tuesday, March 22, 2016

Naming Conventions

Naming Conventions

Pascal Casing: The first character of all words are Upper Case and other characters are lower case. 
Example: BulkStreamReader

Camel Casing: The first character of all words, except the first word are Upper Case and other characters are lower case.
Example: bulkStreamReader


Hungarian Notation: (not recommended)  The name of a variable or function indicates its type or intended use.
Examples:
lAccountNum : variable is a long integer ("l");
arru8NumberList : variable is an array of unsigned 8-bit integers ("arru8");
m_sFirstName : a string member variable for "first name".



No comments:

Post a Comment