Some rules dictate a fixed numerical bound, while others specify less precise heuristics or guidelines. Nevertheless, there are several common elements that influence most if not all naming conventions in common use today.įundamental elements of all naming conventions are the rules related to identifier length (i.e., the finite number of individual characters allowed in an identifier). The exact rules of a naming convention depend on the context in which they are employed. ( September 2010) ( Learn how and when to remove this template message) Unsourced material may be challenged and removed. Please help improve this section by adding citations to reliable sources. Well-chosen identifiers make it significantly easier for developers and analysts to understand what the system is doing and how to fix or extend the source code to apply for new needs. These challenges may be exacerbated if the naming convention rules are internally inconsistent, arbitrary, difficult to remember, or otherwise perceived as more burdensome than beneficial. Moreover, even with known and well-defined naming conventions in place, some organizations may fail to consistently adhere to them, causing inconsistency and confusion. The choice of naming conventions (and the extent to which they are enforced) is often a contentious issue, with partisans holding their viewpoint to be the best and others to be inferior. to provide better understanding in case of code reuse after a long interval of time. to provide meaningful data to be used in project handovers which require submission of program source code and all relevant documentation.to help avoid "naming collisions" that might occur when the work product of different organizations is combined (see also: namespaces).to enhance the aesthetic and professional appearance of work product (for example, by disallowing overly long names, comical or "cute" names, or abbreviations).to enhance clarity in cases of potential ambiguity.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |