Consistent naming of variables
It is a good idea to use consistent format of the variables in programming. Two common ways to name variables are: camel casing or using dash between words. Example of camel casing is carSpeed . Example of using dash is car-speed . When people see the name of this variable it is obvious to them of what it is. When people use variables such as a , these variables are not descriptive enough. Some programming languages add $ before the name of the variable. A common way of using one letter variable is in a loop. For example a loop may implement a variable i as iteration variable. Study Guide: Programming Variable Naming Conventions Key Concepts: Variable: A named storage location in a computer's memory that holds a value. Naming Convention: A set of rules for choosing identifiers (names) for variables, functions, classes, etc., in a programming language. Readability: The ease with which code can be understood by humans. Descriptive Variable Names: Names that clearly indicate the pu...