Eyes on Code Smells: Analyzing Developers’ Responses During Code Snippet Analysis
Detection and refactoring of smelly code are crucial activities, along with software maintenance and evolution. Code smells are indicators of poor design and implementation choices, which are expected to affect the developers’ program comprehension. The use of eyetracking technology provides an interesting means of analyzing the impact of code smells on program comprehension. However, there is limited existing effort in this direction. This paper reports a study in which we have used an eye tracker to investigate how the presence of smells influences developers’ program comprehension. We observed that the smell data class leads to a lower cognitive effort, while long methods and feature envies imposed a considerably higher cognitive effort. That explains why refactoring of feature envies and long methods smells has been much more common across the projects.We also have complementary eye-tracking indicators to reveal other smell aspects harming program comprehension. These findings reinforce the importance of enhancing IDE features to reduce the developer’s burden when engaging in cognitive processes of largely coupled code.
Authors
- Alessandro Garcia (ORCID: https://orcid.org/0000-0001-5788-5215)
- Breno Braga Neves (ORCID: https://orcid.org/0000-0003-0262-424X)
- Pedro Ramos (ORCID: https://orcid.org/0000-0003-0231-4356)
- Matheus Henrique Cassias de Lima
- Vinícius José Baccin Martins (ORCID: https://orcid.org/0000-0002-0327-538X)
- Juliana Alves Pereira (ORCID: https://orcid.org/0000-0002-0799-2829)
- Johny Arriel (ORCID: https://orcid.org/0009-0009-1077-9090)
- João Godinho (ORCID: https://orcid.org/0009-0009-7977-436X)
- João Ribeiro (ORCID: https://orcid.org/0000-0002-7089-9694)
Institutions
- Pontifícia Universidade Católica do Rio de Janeiro (BR)
Publication Details
- Published
- 2024-09-30
- DOI
- https://doi.org/10.5753/sbes.2024.3431
- Citations
- 4
- Primary Topic
- Software Engineering Research
- Type
- article
- Field-Weighted Citation Impact
- 3.12
Funders
- Fundação de Amparo à Pesquisa do Estado de São Paulo
- Coordenação de Aperfeiçoamento de Pessoal de Nível Superior