Computer · 2006 · 20 citations · 6 references
ComputingComputer ScienceNatural Language ProcessingProgramming LanguagesSoftware EngineeringControl-flow AnalysisSoftware ReuseVersion ControlVersion Control SystemsClone DetectionCode Clone DetectionCode Clone ManagementPaste EditingSemantic Relationships
Many software developers know the feeling of desperately debugging a program only to discover after a sleepless night that the error stemmed from copy-pasted code segments that had become inconsistent in subsequent editing. The problems arising from copied code are not new, and many researchers have investigated how to automatically find copied code segments. Given the extensive use of copy-paste operations and their tendency to cause inconsistencies, there is clearly a pressing need to rethink current editor programs. One solution is to replace cut, copy, and paste with operations that correspond directly to the intended semantics behind their use. With these operations, the user can specify semantic relationships among copied objects, and the editor program can use that information to help in the long-term support of those relationships. It would thus avoid the inconsistencies that currently arise from the use of cut, copy, and paste
6
Refactoring improving the design of existing code
Mauricio A. Saca · 2017 · 2.1K citations
An ethnographic study of copy and paste programming practices in oopl
2004 · 231 citations