Variables¶
Naming¶
Name Constants using ALL_CAPS¶
Variables that you do not intend to change (a constant), should follow the following naming scheme.
camelCase for non-constant local variables¶
PascalCase non-constant global variables¶
Use underscore "_" as the name of a variable that cannot be deleted, but is unused¶
Location¶
Always keep variables close to where they are used and grouped together. Global variables should be grouped together and declared at the top of a file (or in a seperate file).