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

08/16/2022
by   Rosalia Tufano, et al.
0

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. 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.

READ FULL TEXT
research
12/25/2021

"We do not appreciate being experimented on": Developer and Researcher Views on the Ethics of Experiments on Open-Source Projects

A tenet of open source software development is to accept contributions f...
research
11/20/2018

Automatic Test Improvement with DSpot: a Study with Ten Mature Open-Source Projects

In the literature, there is a rather clear segregation between manually ...
research
10/11/2019

Repairnator patches programs automatically

Repairnator is a bot. It constantly monitors software bugs discovered du...
research
06/04/2019

Identification and Assessment of Software Design Pattern Violations

The validation of design pattern implementations to identify pattern vio...
research
12/31/2018

Open Source Software Opportunities and Risks

Open Source Software (OSS) history is traced to initial efforts in 1971 ...
research
02/11/2021

CENTRIS: A Precise and Scalable Approach for Identifying Modified Open-Source Software Reuse

Open-source software (OSS) is widely reused as it provides convenience a...
research
08/02/2022

Label Sleuth: From Unlabeled Text to a Classifier in a Few Hours

Text classification can be useful in many real-world scenarios, saving a...

Please sign up or login with your details

Forgot password? Click here to reset