Formatting variable names
Sticking to a specific format of naming the variables will make code looks nice. It will also remove confusion from a developer of how to format a variable.
Common variable naming formats are:
Upper case characters and underscores separating words. Even so this one of the variable naming formats, it is a good practice of using upper case letters for constants.
Pascal case. First letter of each word is capitalized.
Camel case. First letter of first word is lower case, all of the following first letters of each word are capitalized. Camel case is also known as mixed case.
Capitalized with underscores. Each word in a variable name is separated by the underscore character.

Comments
Post a Comment