Tracking Design Smells: Lessons from a Study of God Classes

Abstract : ``God class'' is a term used to describe a certain type of large classes which ``know too much or do too much''. Often a God class (GC) is created by accident as functionalities are incrementally added to a central class over the course of its evolution. GCs are generally thought to be examples of bad code that should be detected and removed to ensure software quality. However, in some cases, a GC is created by design as the best solution to a particular problem because, for example, the problem is not easily decomposable or strong requirements on efficiency exist. In this paper, we study in two open-source systems the ``life cycle'' of GCs: how they arise, how prevalent they are, and whether they remain or they are removed as the systems evolve over time, through a number of versions. We show how to detect the degree of ``godliness'' of classes automatically. Then, we show that by identifying the evolution of ``godliness'', we can distinguish between those classes that are so by design (good code) from those that occurred by accident (bad code). This methodology can guide software quality teams in their efforts to implement prevention and correction mechanisms.
Type de document :
Communication dans un congrès
16th Working Conference on Reverse Engineering (WCRE 2009), IEEE Computer Society Press (WCRE'09), 2009, Lille, France, France. 2009
Liste complète des métadonnées

Littérature citée [40 références]  Voir  Masquer  Télécharger

https://hal.inria.fr/inria-00512134
Contributeur : Didier Vojtisek <>
Soumis le : vendredi 27 août 2010 - 14:56:04
Dernière modification le : jeudi 11 janvier 2018 - 06:20:11
Document(s) archivé(s) le : mardi 23 octobre 2012 - 15:16:11

Fichier

Moha09b.pdf
Fichiers produits par l'(les) auteur(s)

Identifiants

  • HAL Id : inria-00512134, version 1

Collections

Citation

Stéphane Vaucher, Foutse Khomh, Naouel Moha, Yann-Gaël Guéhéneuc. Tracking Design Smells: Lessons from a Study of God Classes. 16th Working Conference on Reverse Engineering (WCRE 2009), IEEE Computer Society Press (WCRE'09), 2009, Lille, France, France. 2009. 〈inria-00512134〉

Partager

Métriques

Consultations de la notice

199

Téléchargements de fichiers

278