Explicit Code Reuse Recommendation

Dov Fraivert, David H. Lorenz

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Code reuse is a common and recommended practice. However, to avoid code duplication reuse may require substantial refactoring effort, especially in legacy code with which the developer is not profoundly familiar. For this reason, developers often prefer to reimplement simple code fragments rather than properly reuse them. In this work, we describe the use of annotations to recommend a useful piece of code for subsequent reuse. These annotations then guard the code against changes that can complicate its extraction, thus allowing subsequent developers to easily locate and reuse it.

Original languageEnglish
Title of host publicationSPLASH Companion 2022 - Companion Proceedings of the 2022 ACM SIGPLAN International Conference on Systems, Programming, Languages, and Applications
Subtitle of host publicationSoftware for Humanity
EditorsAlex Potanin
PublisherAssociation for Computing Machinery, Inc
Pages9-10
Number of pages2
ISBN (Electronic)9781450399012
DOIs
StatePublished - 1 Dec 2022
Event2022 ACM SIGPLAN International Conference on Systems, Programming, Languages, and Applications: Software for Humanity, SPLASH Companion 2022 - Auckland, New Zealand
Duration: 5 Dec 20228 Dec 2022

Publication series

NameSPLASH Companion 2022 - Companion Proceedings of the 2022 ACM SIGPLAN International Conference on Systems, Programming, Languages, and Applications: Software for Humanity

Conference

Conference2022 ACM SIGPLAN International Conference on Systems, Programming, Languages, and Applications: Software for Humanity, SPLASH Companion 2022
Country/TerritoryNew Zealand
CityAuckland
Period5/12/228/12/22

Bibliographical note

Publisher Copyright:
© 2022 Association for Computing Machinery.

Keywords

  • code reuse
  • refactoring

Fingerprint

Dive into the research topics of 'Explicit Code Reuse Recommendation'. Together they form a unique fingerprint.

Cite this