Logo - Fakultät Illustration
 

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: PDF
Jennifer Schmidt | 23.08.2013
FernUni-Logo FernUniversität in Hagen, Fakultät für Mathematik und Informatik, Lehrgebiet Programmiersysteme, 58084 Hagen, Tel.: +49 2331 987-2998