DocumentCode :
2452883
Title :
A method for proactive moderation of code clones in IDEs
Author :
Venkatasubramanyam, Radhika D. ; Singh, Himanshu Kumar ; Ravikanth, K.
Author_Institution :
Corp. Res. & Technol., India, Siemens Inf. Syst. Ltd., Bangalore, India
fYear :
2012
fDate :
4-4 June 2012
Firstpage :
62
Lastpage :
66
Abstract :
Duplicating code and modifying it is a useful convenience when editing within an IDE. This sequence of operations, termed copy-paste-modify, has the downside of proliferating “nearly identical” code segments or code clones and could lead to rapid degeneration of code. Although techniques for proactive identification of clones and differences between them have been studied, no clear method to control clone formation, based on “acceptability criteria,” is known. In this paper, we present a technique to moderate the genesis of clones through copy-paste-modify operations. Our approach is guided by associating constraints formulated from predefined guidelines, and checking for their satisfaction at the time of copy and upon modification. By encoding “acceptability criteria” as constraints, our approach provides the means necessary for controlled creation of clones.
Keywords :
software maintenance; software process improvement; IDE; acceptability criteria; clone formation control; code clones; code duplication; code modification; controlled clone creation; copy-paste-modify operations; integrated development environments; nearly identical code segments; proactive clone identification; proactive moderation method; rapid code degeneration; software maintenance; Cloning; Conferences; Encoding; Guidelines; Measurement; Software maintenance; IDE; code clone; duplicates; moderation; product assessment; software clones; software evolution; software maintenance; source code metrics;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Software Clones (IWSC), 2012 6th International Workshop on
Conference_Location :
Zurich
Print_ISBN :
978-1-4673-1794-8
Type :
conf
DOI :
10.1109/IWSC.2012.6227868
Filename :
6227868
Link To Document :
بازگشت