Why should we have to use a naming convention and what are its advantages?
56610-Dec-2019
"These are only two hard things in Computer Science: cache invalidation and naming things."
Updated on 10-Dec-2019
Home / DeveloperSection / Forums / Why should we have to use a naming convention and what are its advantages?
Nishi Tiwari
11-Dec-2019We should use naming convention in order to reduce the effort needed to read and understand the source code. If we don’t use it while writing source code then it will lead to confusion, error and loss of time and cost. Naming convention helps to understand the code easily that is “what the code is about”.
Advantages
Example
In above case, first case is difficult to read than second case where we read and understand easily what it is about.
So, naming convention is required to reduce the effort needed to read and understand the source code.