Veröffentlichung

Titel:
"Recommending Rename Refactorings"
AutorInnen:
Andreas Thies
Christian Roth
Kategorie:
Konferenzen und Workshops
erschienen in:
2nd International Workshop on Recommendation Systems for Software Engineering (RSSE) @ ICSE (2010) 1-5
Abstract:

Variable names play a major role in program comprehension. However, their choice is often subject to the intuition (or inten-tion) of individual programmers: although code conventions and style guides may constrain identifier usage, programmers are indi-viduals naming program concepts individually. Especially if dif-ferent parts of a program are written by different programmers, inconsistent naming of program entities may follow. This is unfor-tunate, since consistent naming would aid program comprehen-sion, in particular if references pointing to same objects used in similar ways are named equally. As a first approach, we focus on assignments to discover possible inconsistency of naming, ex-ploiting that a variable assigned to another likely points to same objects and, if declared with the same type, is likely used for the same purpose.

To explore the feasibility of our approach, we implemented a tool recommending rename refactorings to harmonize variable names based on an analysis of assignments and static type information. Evaluated on some open source projects the results seem promis-ing enough to aim for some extensions, such as application to method names, inferred type information, and weakly type-checked languages.

Download:
electronic edition via DOI (open access)
Michael Paap | 10.05.2024