loading...
 This Article 
   
 Share 
   
 Bibliographic References 
   
 Add to: 
 
Digg
Furl
Spurl
Blink
Simpy
Google
Del.icio.us
Y!MyWeb
 
 Search 
   
Sixth IEEE International Workshop on Source Code Analysis and Manipulation (SCAM'06)
Syntactic Identifier Conciseness and Consistency
Philadelphia, Pennsylvania
September 27-September 29
ISBN: 0-7695-2353-6
Dawn Lawrie, Loyola College, USA
Henry Feild, Loyola College, USA
David Binkley, Loyola College, USA
Readers of programs have two main sources of domain information: identifier names and comments. It is therefore important for the identifier names (as well as comments) to communicate clearly the concepts that they are meant to represent. Dei?enb?ock and Pizka recently introduced rules for concise and consistent variable naming. One requirement of their approach is an expert provided mapping from identifiers to concepts.

An approach for the concise and consistent naming of variables that does not require any additional information (e.g., a mapping) is presented. Using a pool of 48 million lines of code, experiments with the resulting syntactic rules for concise and consistent naming illustrate that violations of the syntactic pattern exist. Two case studies show that three quarters of the violations uncovered are "real". That is they would be identified using a concept mapping. Techniques for reducing the number of false positives are also presented. Finally, two related studies show that evolution does not introduce rule violations and that programmers tend to use a rather limited vocabulary.

Index Terms:
Identifier Quality, Part-of-speech
Citation:
Dawn Lawrie, Henry Feild, David Binkley, "Syntactic Identifier Conciseness and Consistency," scam, pp.139-148, Sixth IEEE International Workshop on Source Code Analysis and Manipulation (SCAM'06), 2006
Usage of this product signifies your acceptance of the Terms of Use.