Effectiveness of encapsulation and object-oriented metrics to refactor code and identify error prone classes using bad smells

Author:

Singh Satwinder1,Kahlon K. S.2

Affiliation:

1. B.B.S.B. Engg. College, Fatehgarh Sahib

2. Guru Nanak Dev University, AMRITSAR

Abstract

To assist maintenance and evolution teams, work needs to be done at the onset of software development. One such facilitation is refactoring the code, making it easier to read, understand and maintain. Refactoring is done by identifying bad smell areas in the code. In this paper, based on empirical analysis, we develop a metrics model to identify smelly 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 thev 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 verify our model, we examine the open source Firefox system, which has a strong industrial usage. The results show that proposed metrics model for bad smell can predict faulty classes with high accuracy, but in the case of the categorized model not all categories of bad smells can adequately identified the faulty and smelly classes. Due to certain limitations of our study more experiments are required to generalize the results of bad smell and faulty class identification in software code.

Publisher

Association for Computing Machinery (ACM)

Cited by 10 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Improving the Quality of Open Source Software;Agile Software Development;2023-02-08

2. GSDetector: a tool for automatic detection of bad smells in GRL goal models;International Journal on Software Tools for Technology Transfer;2022-08-13

3. Software smell detection techniques: A systematic literature review;Journal of Software: Evolution and Process;2020-10-15

4. A systematic literature review: Refactoring for disclosing code smells in object oriented software;Ain Shams Engineering Journal;2018-12

5. State of the art metrics for aspect oriented programming;AIP Conference Proceedings;2018

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3