Member-only story
Naming conventions for variables in Programming
constantly promote code readability and maintain uniformity across all the programming projects. Even though specific conventions differ for the different programming languages, some common conventions have been followed widely. Rules for variable naming Descriptive and meaningful: The name must describe the purpose or content of the variable. A descriptive name increases the readability and comprehensibility of the code. Camel Case or Underscore Separation Use camel case, such as myVariableName, or underscores, like my_variable_name. Be consistent with one convention and avoid Single Letter Names Use names longer than a letter unless the purpose is as mundane as counting through a loop, or everyone uses some accepted convention, like using i to hold an index. Obey language conventions: Ideo, in your chosen programming language, do follow the naming conventions recommended. For example, in Java camel case is followed (myVariableName), and in Python underscores are usually followed (my_variable_name).
Avoided Reserved Words: That is the reserved words or keywords of the programming language should not be used as variable names.
Avoided Abbreviations: Full words instead of abbreviations should be used except for widely accepted or for standard terms (like max, min).