We 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
It enhance the readability, understandability and clarity of code.
It helps in avoiding naming collision.
Maintains the consistency of code.
Example
gradeofstudent
GradeOfStudent
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.
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
We 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.