Naming things when coding can be challenging when you have different naming conventions available (set of rules used for naming entities). These conventions are essential for code readability and maintainability.
In this article, I will explain the differences between the most widely used case types in programming.
When choosing a case style, keep in mind the best practices of the programming language you are using in your project and it is also very important to be consistent.
Start with the first word lowercase, then capitalize the first letter of each word that follows.
Start with the first word letter uppercase, then capitalize the first letter of each word that follows.
Note: Pascal Case is usually used for naming classes
Separate each word with an underscore character (_)
Separate each word with a dash character (-)
Commonly used for URLs or CSS class names