Abstract
Bad smells are indicators of possible problems in software. Refactoring is usually undertaken to eradicate bad smells. Many studies have investigated the impact of bad smells on software quality, however, only a few have proposed methods to prioritize bad smells. The objective of this paper is to propose a model to prioritize bad smells based on their impact on software maintainability. We use the analytical hierarchy process (AHP) to prioritize bad smells based on their maintainability impact by measuring the code before and after refactoring. The model is validated against five bad smells and five open-source projects. In addition, a visualization of the relationships between classes’ maintainability and its bad smells’ ranking is presented. The prioritization model can help software practitioners in prioritizing their effort and better utilizing their resources. The proposed prioritization model provides an effective method to prioritize the impact of bad smells on maintainability and it can be extended to prioritize the impact of bad smells on other quality attributes.
Original language | English |
---|---|
Pages (from-to) | 9157-9177 |
Number of pages | 21 |
Journal | Arabian Journal for Science and Engineering |
Volume | 46 |
Issue number | 9 |
DOIs | |
State | Published - Sep 2021 |
Bibliographical note
Publisher Copyright:© 2021, King Fahd University of Petroleum & Minerals.
Keywords
- Bad smell prioritization
- Refactoring
- Software maintainability
ASJC Scopus subject areas
- General