An Approach of Extracting God Class Exploiting Both Structural and Semantic Similarity

Pritom Akash, Ali Sadiq, Ahmedul Kabir

2019

Abstract

Code smell is a sign of design and development flaws in a software system which reduces the reusability and maintainability of the system. Refactoring is a continuous practice of eliminating code smells from the source code. A God Class is one of the most common code smells where too many responsibilities are defined in a single class. God Classes reduce the quality of a system by increasing coupling and decreasing cohesion. In this paper, we propose an approach for extracting a God Class into new classes by increasing class cohesion. For this, both structural and semantic relationship between methods in a class are analyzed, and strongly related methods are clustered and suggested to be in the same class. We assessed the proposed approach on fifteen real God Classes from two well-known open source systems and it is shown that the cohesion among the classes is increased after refactoring. A comparative result of our approach with a similar existing approach is presented and it is found that our approach provides better results for almost all the experimented God Classes.

Download


Paper Citation


in Harvard Style

Akash P., Sadiq A. and Kabir A. (2019). An Approach of Extracting God Class Exploiting Both Structural and Semantic Similarity.In Proceedings of the 14th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE, ISBN 978-989-758-375-9, pages 427-433. DOI: 10.5220/0007743804270433


in Bibtex Style

@conference{enase19,
author={Pritom Akash and Ali Sadiq and Ahmedul Kabir},
title={An Approach of Extracting God Class Exploiting Both Structural and Semantic Similarity},
booktitle={Proceedings of the 14th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE,},
year={2019},
pages={427-433},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0007743804270433},
isbn={978-989-758-375-9},
}


in EndNote Style

TY - CONF

JO - Proceedings of the 14th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE,
TI - An Approach of Extracting God Class Exploiting Both Structural and Semantic Similarity
SN - 978-989-758-375-9
AU - Akash P.
AU - Sadiq A.
AU - Kabir A.
PY - 2019
SP - 427
EP - 433
DO - 10.5220/0007743804270433