Title
Removing Code Duplication with Roles
Abstract
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.
Year
DOI
Venue
2013
10.1109/SoMeT.2013.6645656
Intelligent Software Methodologies, Tools and Techniques
Keywords
Field
DocType
programming languages,software maintenance,source coding,JHotDraw framework,code clone removal,code duplication reduction,composition mechanisms,programming language,refactorings,replicated code removal,role usage
Duplicate code,Programming language,Source code,Computer science,Theoretical computer science,Software maintenance,Code refactoring,Sketch
Conference
ISBN
Citations 
PageRank 
978-1-4799-0419-8
1
0.34
References 
Authors
15
2
Name
Order
Citations
PageRank
Fernando Sérgio Barbosa110.34
Ademar Aguiar215427.13