ARTICLE
TITLE

A User Feedback Centric Approach for Detecting and Mitigating God Class Code Smell Using Frequent Usage Patterns

SUMMARY

Code smells are the fragments in the source code that indicates deeper problems in the underlying software design. These code smells can hinder software evolution and maintenance. Out of different code smell types, the God Class (GC) code smell is one of the many important code smells that directly affects the software evolution and maintenance. The GC is commonly defined as a much larger class in systems that either know too much or do too much as compared to other classes in the system. God Classes are generally accidentally created overtime during software evolution because of the incremental addition of functionalities to it. Generally, a GC indicates a bad design choice and it must be detected and mitigated in order to enhance the quality of the underlying software. However, sometimes the presence of a GC is also considered a good design choice, especially in compiler design, interpreter design and parser implementation. This makes the developer’s feedback important for the correct classification of a class as a GC or a normal class. Therefore, this paper proposes a new approach that detects and proposes refactoring opportunities for GC code smell. The proposed approach makes use of different code metrics in combination along with utilizing user feedback as an important aspect while correctly identifying the GC code smell. The proposed approach that considers combined use of code metrics, is based on two newly proposed code metrics in this paper. The first newly proposed metric is a new approach of measuring the connectivity of a given class with other classes in the system (also termed as coupling). The second newly proposed code metric is proposed to measure the extent to which a given classes make use of foreign member variables. Finally, the proposed approach is also empirically evaluated on two standard open-source commonly used software systems. The obtained result indicates that the proposed approach is capable of correctly identifying the GC code smell.

 Articles related

Yasmine Fahmy    

Joint Processing (JP) in Coordinated Multi-Point (CoMP) transmission allows user data to be jointly processed by several interfering base stations to achieve high performance and large capacity gain. This is achieved by making use of timin... see more


Anak Agung Gede Dharma,Hiroyuki Kumamoto,Shogo Kochi,Natsuki Kudo,Wei Guowei,Chiu Shu-Chuan,Kiyoshi Tomimatsu    

The growth of Social Networking Service (SNS) has created a new potential in marketing. While users communicate and interact via SNS, the list of their conversation, which is called casual data can be used to determine their needs or aspirations. SNS can... see more


Jingbo Zhang, Lili Cai and Shufang Zhang    

Collaborative spectral sensing can fuse the perceived results of multiple cognitive users, and thus will improve the accuracy of perceived results. However, the multi-source features of the perceived results result in security problems in the system. Whe... see more

Revista: Future Internet

Nurizal Dwi Priandani,Yohana Avelia Sandy,Nadia Roosmalita Sari    

Agriculture is an important sector in Indonesia. Farming are how most people make a living within the population [1]. Currently, access to consult with agricultural experts is something that farmers don't have as a privilege. The combination of technolog... see more


Mahdi Miraz, Maaruf Ali, Peter Stuart Excell (Author)    

With the widespread purchase of mobile communication devices and their extensive usage in every aspect of life, allied with global mobility and market penetration – a more culturally universally adaptable interface has become a priority. This pliable int... see more