coding standard guidelines
As you become a senior software developer, you understand better the importance of readability in your code. Variable naming conventions are -mostly- public standards and rules on how to name your variables when coding.
This article will explore the most popular naming conventions, when to use them, and why.
Absolutely yes!! Not using conventions when coding can be compared to not following the driving laws: You can drive your car without following them, but you can cause accidents and eventually you will get a ticket.
Software Developers that don't use naming conventions will become isolated from the coding community, and their code contributions will be ignored because the code is hard to understand. As a result, they will not be hired by most companies or will be fired when the company finds out.
Most programming languages use one general convention for variable and function names and then other conventions for minor exceptions like class names, etc.
The two most popular general conventions are Snake Case for Python and Camel Case for JavaScript and NodeJS. Pascal Case was used by Visual Basic, but now it's mainly used in most programming languages for classes and data structures.
Choosing clear, descriptive, and meaningful names for your variables and other elements in your code is essential, regardless of which naming convention you use. This will help to make your code more readable and easier to understand.
There are only two hard things in Computer Science: cache invalidation and naming things. — Phil Karlton
We have dedicated a whole article about how to name your variables, as this is the most crucial skill for increasing code readability.