Don't Reinvent the Wheel: Towards Automatic Replacement of Custom Implementations with APIs

Rosalia Tufano, Emad Aghajani, Gabriele Bavota
8/16/2022
cs.SE

Official code: APIreplacement/api_replacement (0 stars, Java, last commit 2022-10-06).

Abstract

Reusing code is a common practice in software development: It helps developers speedup the implementation task while also reducing the chances of introducing bugs, given the assumption that the reused code has been tested, possibly in production. Despite these benefits, opportunities for reuse are not always in plain sight and, thus, developers may miss them.

Show full abstract

We present our preliminary steps in building RETIWA, a recommender able to automatically identify custom implementations in a given project that are good candidates to be replaced by open source APIs. RETIWA relies on a ``knowledge base'' consisting of real examples of custom implementation-to-API replacements. In this work, we present the mining strategy we tailored to automatically and reliably extract replacements of custom implementations with APIs from open source projects. This is the first step towards building the envisioned recommender.

View on arXivView PDF

Code Implementations(1)

01JavaJun 8, 20224 years ago

Similar Papers

Cite this paper

@article{tufano2022dont,
  title  = {Don't Reinvent the Wheel: Towards Automatic Replacement of Custom Implementations with APIs},
  author = {Rosalia Tufano and Emad Aghajani and Gabriele Bavota},
  year   = {2022},
  eprint = {2208.07624},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2208.07624}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2208.07624.svg)](https://codeofpaper.com/paper/2208.07624)

Discussion