An Approach for Semantically-Enriched Recommendation of Refactorings Based on the Incidence of Code Smells
Autor: | Laís do Nascimento Salvador, Manoel Gomes de Mendonça Neto, Renato Lima Novais, Luis Paulo da Silva Carvalho |
---|---|
Rok vydání: | 2018 |
Předmět: |
Interpretation (logic)
Computer science business.industry Code smell 020207 software engineering 02 engineering and technology Ontology (information science) Recommender system Semantics computer.software_genre Software Code refactoring Software_SOFTWAREENGINEERING 020204 information systems 0202 electrical engineering electronic engineering information engineering Software engineering business computer |
Zdroj: | Enterprise Information Systems ISBN: 9783319933740 ICEIS (Revised Selected Papers) |
DOI: | 10.1007/978-3-319-93375-7_15 |
Popis: | Code smells are symptoms of bad decisions on the design and development of software. The occurrence of code smells in software can lead to costly consequences. Refactorings are considered adequate resources when it comes to reducing or removing the undesirable effects of smells in software. Ontologies and semantics can play a substantial role in reducing the interpretation burden of software engineers as they have to decide about adequate refactorings to mitigate the impact of smells. However, related work has given little attention to associating the recommendation of refactorings with the use of ontologies and semantics. Developers can benefit from the combination of code smells detection with a semantically-oriented approach for recommendation of refactorings. To make this possible, we expand the application of our previous ontology, ONTOlogy for Code smEll ANalysis (ONTOCEAN), to combine it with a new one, Ontology for SOftware REfactoring (OSORE). We also introduce a new tool, our REfactoring REcommender SYStem (RESYS) which is capable of binding our two ontologies. As a result, refactorings are automatically chosen and semantically linked to their respective code smells. We also conducted a preliminary evaluation of our approach in a real usage scenario with four open-source software projects. |
Databáze: | OpenAIRE |
Externí odkaz: |