DocumentCode :
1958758
Title :
Automated Identifier Completion and Replacement
Author :
Abebe, Surafel Lemma ; Tonella, Paolo
Author_Institution :
Software Eng. Res. Unit, Fondazione Bruno Kessler, Trento, Italy
fYear :
2013
fDate :
5-8 March 2013
Firstpage :
263
Lastpage :
272
Abstract :
Various studies indicate that having concise and consistent identifiers improves the quality of the source code and hence impacts positively source code understanding and maintenance. In order to write concise and consistent identifiers, however, developers need to have some knowledge about the concepts captured in the source code and how they are named. Acquiring such knowledge from the source code might be feasible only for small systems, while it is not viable for large systems. In this paper, we propose an automated approach which exploits concepts and relations automatically extracted from the source code to suggest identifiers. The suggestion is ranked based on the context in which a new identifier is introduced and it can be used either to complete the identifier being written or to replace it with a more appropriate one. To validate the proposed approach, we have conducted a case study by simulating the activities of a developer in naming identifiers. The results of the study show that in the majority of the cases our approach provides completion suggestions which match the identifiers actually used by the developers.
Keywords :
reverse engineering; software maintenance; software quality; automated identifier completion; automated identifier replacement; source code maintenance; source code quality; source code understanding; Context; Dictionaries; Graphical user interfaces; Natural languages; Ontologies; Servers; identifier quality; ontology; source code maintenance;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Software Maintenance and Reengineering (CSMR), 2013 17th European Conference on
Conference_Location :
Genova
ISSN :
1534-5351
Print_ISBN :
978-1-4673-5833-0
Type :
conf
DOI :
10.1109/CSMR.2013.35
Filename :
6498474
Link To Document :
بازگشت