Repository logo
 
Loading...
Thumbnail Image
Publication

Removing code duplication with roles

Use this identifier to reference this record.
Name:Description:Size:Format: 
SOMET2013_RemovingCodeDupWithRoles (cr).pdf100.84 KBAdobe PDF Download

Advisor(s)

Abstract(s)

The existence of replicated code in a system makes that system harder to maintain and evolve. To remove replicated code the usual way is to use refactorings. However there are always clones that cannot be removed by refactorings alone. Some are due to lack of composition mechanisms in the underlying programming language. We propose the use of roles to remove such clones since roles provide a finer degree of composition. We sketch four role refactorings to remove code clones and apply them in a case study using the JHotDraw framework. Results show that roles have a positive impact in clone reduction as they were able to remove almost all clones traditional refactorings could not.

Description

Keywords

Roles Code duplication Refactoring

Pedagogical Context

Citation

BARBOSA, Fernando Sérgio; AGUIAR, Ademar (2013) - Removing code duplication with roles. In International conference on Intelligent Software Methodologies, Tools and Techniques, 12, Budapeste, 22-24 de setembro. [S.l.]: IEEE. p. 1-6

Research Projects

Organizational Units

Journal Issue