DocumentCode :
1890775
Title :
Extracting Meaning from Abbreviated Identifiers
Author :
Lawrie, Dawn ; Feild, Henry ; Binkley, David
Author_Institution :
Loyola Coll., Baltimore
fYear :
2007
fDate :
Sept. 30 2007-Oct. 1 2007
Firstpage :
213
Lastpage :
222
Abstract :
Informative identifiers are made up of full (natural language) words and (meaningful) abbreviations. Readers of programs typically have little trouble understanding the purpose of identifiers composed of full words. In addition, those familiar with the code can (most often) determine the meaning of abbreviations used in identifiers. However, when faced with unfamiliar code, abbreviations often carry little useful information. Furthermore, tools that focus on the natural language used in the code have a hard time in the presence of abbreviations. One approach to providing meaning to programmers and tools is to translate (expand) abbreviations into full words. This paper presents a methodology for expanding identifiers and evaluates the process on a code based of just over 35 million lines of code. For example, using phrase extraction, fs_exists is expanded to file_status_exists illustrating how the expansion process can facilitate comprehension. On average, 16 percent of the identifiers in a program are expanded. Finally, as an example application, the approach is used to improve the syntactic identification of violations to Deissenbock and Pizka´s rules for concise and consistent identifier construction.
Keywords :
reverse engineering; software quality; abbreviated program identifier meaning extraction; program comprehension; program understandability; software quality; syntactic violation identification; Dictionaries; Documentation; Educational institutions; Information retrieval; Libraries; Natural languages; Programming profession; Software engineering; Software quality; USA Councils; Program Comprehension; Program Identifiers; Software Quality;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Source Code Analysis and Manipulation, 2007. SCAM 2007. Seventh IEEE International Working Conference on
Conference_Location :
Paris
Print_ISBN :
978-0-7695-2880-9
Type :
conf
DOI :
10.1109/SCAM.2007.17
Filename :
4362915
Link To Document :
بازگشت