Affiliation:
1. B.B.S.B. Engg. College, Fatehgarh Sahib-140407
2. Guru Nanak Dev University, AMRITSAR-143001
Abstract
In order to improve software maintainability, possible improvement efforts must be made measurable. One such effort is refactoring the code which makes the code easier to read, understand and maintain. It is done by identifying the bad smell area in the code. This paper presents the results of an empirical study to develop a metrics model to identify the smelly classes. In addition, this metrics model is validated by identifying the smelly and error prone classes. The role of two new metrics (encapsulation and information hiding) is also investigated for identifying smelly and faulty classes in software code. This paper first presents a binary statistical analysis of the relationship between metrics and bad smells, the results of which show a significant relationship. Then, the metrics model (with significant metrics shortlisted from the binary analysis) for bad smell categorization (divided into five categories) is developed. To develop the model, three releases of the open source Mozila Firefox system are examined and the model is validated on one version of Mozila Sea Monkey, which has a strong industrial usage. The results show that metrics can predict smelly and faulty classes with high accuracy, but in the case of the categorized model, not all categories of bad smells can adequately be identified. Further, few categorised models can predict the faulty classes. Based on these results, we recommend more training for our model.
Publisher
Association for Computing Machinery (ACM)
Cited by
10 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Tuning Code Smell Prediction Models: A Replication Study;Proceedings of the 32nd IEEE/ACM International Conference on Program Comprehension;2024-04-15
2. An Approach to Regression Testing Selection based on Code Changes and Smells;8th Brazilian Symposium on Systematic and Automated Software Testing;2023-09-25
3. Improving the Quality of Open Source Software;Agile Software Development;2023-02-08
4. Bug Classification Depend Upon Refactoring Area of Code;Journal of The Institution of Engineers (India): Series B;2023-01-05
5. Object Oriented Metrics Based Empirical Model for Predicting “Code Smells” in Open Source Software;Journal of The Institution of Engineers (India): Series B;2023-01-03