source: https:
- Snakecase: Words are delimited by an underscore.
variable_one
variable_two
- Pascalcase: Words are delimited by capital letters.
VariableOne
VariableTwo
- Camelcase: Words are delimited by capital letters, except the initial word.
variableOne
variableTwo
- Hungarian Notation: This notation describes the variable type or purpose at the start of the variable name, followed by a descriptor that indicates the variable’s function. The Camelcase notation is used to delimit words.
arrDistrubuteGroup
sUserName
iRandomSeed
An important aspect of naming is to ensure your classes, functions, and variables
can be distinguished from each other.
For example, one could use Camelcase and Pascalcase for functions
and classes respectively, while reserving Snakecase or Hungarian notation
for variable names.
Distinguishing functions, classes, and variables with different naming
conventions can greatly aid other users of your code, and can eliminate
the need for large sections of comments that would otherwise be needed.