In: Computer Science
Discuss why naming conventions are important and why as a programmer you should consistently follow them. Include in this discussion, problems that could arise in naming variables if one convention is NOT followed.
Why naming conventions are important and why as a programmer you should consistently follow them?
Naming conventions make code clearer ,simple and easy to understand.It also add metadata that help in understanding each component's purpose.Naming conventions should be easy and simple use and remember.It reduce burden on devlopers.
Naming conventions may seem less important than logic, but if code become hard to understand it become more difficult to create, debug, and maintain. Good naming conventions help programmers to work on each others code.It also help devlopers to understand their own code in case of complex programs over long periods of time.It also reduce time wasted reinterpreting same information multiple times.
Problems that could arise in naming variables if one convention is NOT followed.
1.Increase development time:-If proper naming conventions is not followed a devlopers will spend most of his energy on remember to name but not how to solve the problem.
2.Make the project structure more complex:-Using bad Naming conventions may result in complex project structure that will produce problems in the devlopment of the project.
3.Turn down engineer motivation:-Humans are good to maintain one standard at a time. If there exist different naming styles in the project, it distribute engineer concentration. So engineer doesn’t want to work on project which is hard to understand the code.