6 rules to name variables correctly
A developer reads code more often than writes it. In addition, not your own but created by others ? Therefore, unsuccessful names of variables — special "repositories" in which information can be placed can significantly increase time spent. So it's important to name them so that you and your team can understand the code at a glance, even months later.
Name the variables so that there is no need for comments. And they were as straightforward as possible without context and additional code study.
The variable name must include letters, numbers, an underscore, and a $ sign.
Do not use transliteration. Name the variables only in English. If there are problems with the language, use a translator.
Do not call variables by one letter, do not use abbreviations, and avoid abbreviations except generally accepted ones.
Capitalize every word except the first. Remember that variables are case-sensitive.
The variable name should briefly describe its purpose. Use those that are easy to read.