Go to the first, previous, next, last section, table of contents.


5.2 Identifier Naming Conventions

Clarity is of the utmost importance in naming your identifiers. Your code should read like a great novel. Replace generic names, such as count, with maximally specific names, such as vertex_count or edge_count. Refrain from using meaningless names, such as temp, tmp, or variants of the dreaded x, xx, xxx series. Single character names are reserved for integer iteration variables.

Vowels are obligatory! Even standard abbreviations (eg., defn, dir) should not be used unless they improve clarity. If your typing skills are inadequate to type long names quickly, then take a typing class, but don't burden others with your sloth.


Go to the first, previous, next, last section, table of contents.