Difference between revisions of "Naming convention (programming)"
From Wiki @ Karl Jones dot com
Karl Jones (Talk | contribs) (etc) |
(No difference)
|
Revision as of 07:50, 7 June 2015
In computer programming, a naming convention is a set of rules for choosing the character sequence to be used for identifiers which denote variables, types, functions, and other entities in source code and documentation.
Reasons for using a naming convention (as opposed to allowing programmers to choose any character sequence) include:
- To reduce the effort needed to read and understand source code
- To enable code reviews be able to focus on more important issues than arguing over syntax and naming standards.
- To enable code quality review tools be able to focus their reporting mainly on significant issues other than syntax and style preferences.
- To enhance source code appearance (for example, by disallowing overly long names or unclear abbreviations).
The choice of naming conventions can be an enormously controversial issue, with partisans of each holding theirs to be the best and others to be inferior.
Many companies have established their own set of conventions to meet their interests.
==
External links
- Naming convention (programming) @ Wikipedia