DIMAJIX - software consulting (http://www.dimajix.de/)
 

Naming


Rule 19. Every local variable starts with a lowercase letter.

Again the rule of the thumb is that instances of objects should be denoted by a name beginning with a lowercase letter whereas the class itself always starts with an uppercase letter.


Rule 20. Every global variable name starts with a lowercase ''g_'' followed by a capital letter.

This prefixing helps to distinguish between local variables (which do not have any prefix) and global variables. Later we will also see that member variables of classes will also be prefixed.



Kaya Memisoglu 2005-01-06