Managing Duplicated Code with Linked Editing

  • Authors:
  • Michael Toomim;Andrew Begel;Susan L. Graham

  • Affiliations:
  • University of California at Berkeley;University of California at Berkeley;University of California at Berkeley

  • Venue:
  • VLHCC '04 Proceedings of the 2004 IEEE Symposium on Visual Languages - Human Centric Computing
  • Year:
  • 2004

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present Linked Editing, a novel, lightweight editor-based technique for managing duplicated source code. Linked Editing is implemented in a prototype editor called Codelink. We argue that the use of programming abstractions like functions and macros-the traditional solution to duplicated code-has inherent cognitive costs, leading programmers to chronically copy and paste code instead. Our user study compares functional abstraction with Linked Editing and shows that Linked Editing can give the benefits of abstraction with orders of magnitude decrease in programming time.