Automatic Detection of GUI Design Smells: The Case of Blob Listener

Abstract : Graphical User Interfaces (GUIs) intensively rely on event-driven programming: widgets send GUI events, which capture users' interactions, to dedicated objects called controllers. Controllers implement several GUI listeners that handle these events to produce GUI commands. In this work, we conducted an empirical study on 13 large Java Swing open-source software systems. We study to what extent the number of GUI commands that a GUI listener can produce has an impact on the change-and fault-proneness of the GUI listener code. We identify a new type of design smell, called Blob listener that characterizes GUI listeners that can produce more than two GUI commands. We show that 21 % of the analyzed GUI controllers are Blob listeners. We propose a systematic static code analysis procedure that searches for Blob listener that we implement in InspectorGuidget. We conducted experiments on six software systems for which we manually identified 37 instances of Blob listener. InspectorGuidget successfully detected 36 Blob listeners out of 37. The results exhibit a precision of 97.37 % and a recall of 97.59 %. Finally, we propose coding practices to avoid the use of Blob listeners.
Type de document :
Communication dans un congrès
Proceedings of the 8th ACM SIGCHI Symposium on Engineering Interactive Computing Systems (EICS'16), Jun 2016, Brussels, Belgium. pp.263-274, 〈10.1145/2933242.2933260〉
Liste complète des métadonnées

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

https://hal.inria.fr/hal-01308625
Contributeur : Arnaud Blouin <>
Soumis le : vendredi 29 avril 2016 - 22:48:57
Dernière modification le : vendredi 1 décembre 2017 - 01:22:17
Document(s) archivé(s) le : mardi 15 novembre 2016 - 18:32:18

Fichier

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

Identifiants

Citation

Valéria Lelli, Arnaud Blouin, Benoit Baudry, Fabien Coulon, Olivier Beaudoux. Automatic Detection of GUI Design Smells: The Case of Blob Listener. Proceedings of the 8th ACM SIGCHI Symposium on Engineering Interactive Computing Systems (EICS'16), Jun 2016, Brussels, Belgium. pp.263-274, 〈10.1145/2933242.2933260〉. 〈hal-01308625v2〉

Partager

Métriques

Consultations de la notice

872

Téléchargements de fichiers

319