DocumentCode
3694194
Title
Investigating naming convention adherence in Java references
Author
Simon Butler;Michel Wermelinger;Yijun Yu
Author_Institution
Computing and Communications Department, The Open University, Walton Hall, Milton Keynes MK7 6AA, United Kingdom
fYear
2015
Firstpage
41
Lastpage
50
Abstract
Naming conventions can help the readability and comprehension of code, and thus the onboarding of new developers. Conventions also provide cues that help developers and tools extract information from identifier names to support software maintenance. Tools exist to automatically check naming conventions but they are often limited to simple checks, e.g. regarding typography. The adherence to more elaborate conventions, such as the use of noun and verbal phrases in names, is not checked. We present Nominal, a naming convention checking library for Java that allows the declarative specification of conventions regarding typography and the use of abbreviations and phrases. To test Nominal, and to investigate the extent to which developers follow conventions, we extract 3.5 million reference - field, formal argument and local variable - name declarations from 60 FLOSS projects and determine their adherence to two well-known Java naming convention guidelines that give developers scope to choose a variety of forms of name, and sometimes offer conflicting advice. We found developers largely follow naming conventions, but adherence to specific conventions varies widely.
Keywords
"Java","Guidelines","Engines","Data mining","Ciphers","Terminology","Software"
Publisher
ieee
Conference_Titel
Software Maintenance and Evolution (ICSME), 2015 IEEE International Conference on
Type
conf
DOI
10.1109/ICSM.2015.7332450
Filename
7332450
Link To Document