variables
-
January 12, 2023
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.
Rule 1.
Name the variables so that there is no need for comments. And they were as straightforward as possible without context and additional code study.
Rule 2.
The variable name must include letters, numbers, an underscore, and a $ sign.
Rule 3.