Naming conventions

Naming conventions are a set of guidelines for providing consistency in the naming of entities in software development and data management. These include program names, function names, variable names, table names, file names and document names.

Naming conventions can minimise the effort needed to read and understand source code.

You will be expected to comply with naming conventions. All variable and function names should be meaningful and descriptive. Only use well established abbreviations, such as min for minimum and max for maximum. There is no need to abbreviate most words.

Avoid single letter variable names such as a and x, other than the loop iteration variables i and j, which are an established convention in programming. Do not use meaningless names such as foo or my_var.

We have naming conventions to make code easier to read and maintain. There are many types of naming conventions such as snake_case, camelCase, Pascal case and Hungarian notation. In Python, you should use snake_case for variable (or property) names and function names. In Python, object-oriented programming class names usually use UpperCamelCase naming conventions.