Revealing Developers’ Arguments on Validating the Incidence of Code Smells: A Focus Group Experience

  • Luis Felipi Junionello CEFET/RJ
  • Rafael de Mello CEFET/RJ
  • Roberto Oliveira UEG
  • Leonardo Sousa Carnegie Mellon University
  • Alexander López Fundação CERTI
  • Alessandro Garcia PUC-Rio

Resumo


Identifying code smells is considered a subjective task. Unfortunately, current automated detection tools cannot deal with such subjectivity, requiring human validation. Developers tend to follow different, albeit complementary, strategies when validating the identified smells. Intending to find out developers' arguments when validating the incidence of code smells, we conducted a focus group session with developers familiar with identifying code smells. We distributed them among two groups, in which they had to argue about the incidence of a code smell: either accepting or rejecting its presence. Based on their arguments, we compiled a set of general heuristics that developers follow when validating smells. We then used these heuristics for composing validation items. We understand that the set of validation items proposed may support developers in reflecting on the incidence of code smells. However, further studies are needed for reaching a more comprehensive and optimized set. The experience of this study reveals that conducting focus group sessions is helpful to emerge the tacit knowledge of developers when validating code smells.

Palavras-chave: code smells, validation, focus group

Referências

Keith Bennett and Vaclav Rajlich. 2000. Software Maintenance and Evolution: A Roadmap. (2000).

Rafael de Mello, Anderson Uchôa, Roberto Oliveira, Willian Oizumi, Jairo Souza, Kleyson Mendes, Daniel Oliveira, Baldoino Fonseca, and Alessandro Garcia. 2019. Do Research and Practice of Code Smell Identification Walk Together? A Social Representations Analysis. https://doi.org/10.1109/ESEM.2019.8870141

Rafael Maiani de Mello, Roberto Oliveira, and Alessandro Garcia. 2017. On the influence of human factors for identifying code smells: A multi-trial empirical study. In 2017 ACM/IEEE International Symposium on Empirical Software Engineering and Measurement (ESEM). IEEE, 68–77.

Eduardo Fernandes, Johnatan Oliveira, Gustavo Vale, Thanis Paiva, and Eduardo Figueiredo. 2016. A review-based comparative study of bad smell detection tools. In Proceedings of the 20th International Conference on Evaluation and Assessment in Software Engineering. 1–12.

Martin Fowler. 2018. Refactoring: improving the design of existing code. Addison-Wesley Professional.

Mário Hozano, Alessandro Garcia, Baldoino Fonseca, and Evandro Costa. 2018. Are you smelling it? Investigating how similar developers detect code smells. Information and Software Technology 93 (2018), 130–146.

Jyrki Kontio, Johanna Bragge, and Laura Lehtola. 2008. The focus group method as an empirical tool in software engineering. In Guide to advanced empirical software engineering. Springer, 93–116.

Rodrigo Lima, Jairo Souza, Baldoino Fonseca, Leopoldo Teixeira, Rohit Gheyi, Márcio Ribeiro, Alessandro Garcia, and Rafael de Mello. 2020. Understanding and Detecting Harmful Code. In Proceedings of the 34th Brazilian Symposium on Software Engineering. 223–232.

Roberto Oliveira, Rafael de Mello, Eduardo Fernandes, Alessandro Garcia, and Carlos Lucena. 2020. Collaborative or individual identification of code smells? On the effectiveness of novice and professional developers. Information and Software Technology 120 (2020), 106242.

Thanis Paiva, Amanda Damasceno, Eduardo Figueiredo, and Cláudio Sant’Anna. 2017. On the evaluation of code smells and detection tools. Journal of Software Engineering Research and Development 5, 1 (2017), 1–28.

Fabio Palomba, Gabriele Bavota, Massimiliano Di Penta, Fausto Fasano, Rocco Oliveto, and Andrea De Lucia. 2018. On the diffuseness and the impact on maintainability of code smells: a large scale empirical investigation. Empirical Software Engineering 23, 3 (2018), 1188–1221.

Fabiano Pecorelli, Fabio Palomba, Dario Di Nucci, and Andrea De Lucia. 2019. Comparing heuristic and machine learning approaches for metric-based code smell detection. In 2019 IEEE/ACM 27th International Conference on Program Comprehension (ICPC). IEEE, 93–104.

Jilles Van Gurp and Jan Bosch. 2002. Design erosion: problems and causes. Journal of systems and software 61, 2 (2002), 105–119.

Uwe Van Heesch, Theo Theunissen, Olaf Zimmermann, and Uwe Zdun. 2017. Software specification and documentation in continuous software development: a focus group report. In Proceedings of the 22nd European Conference on Pattern Languages of Programs. 1–13.
Publicado
27/09/2021
JUNIONELLO, Luis Felipi; DE MELLO, Rafael; OLIVEIRA, Roberto; SOUSA, Leonardo; LÓPEZ, Alexander; GARCIA, Alessandro. Revealing Developers’ Arguments on Validating the Incidence of Code Smells: A Focus Group Experience. In: WORKSHOP DE VISUALIZAÇÃO, EVOLUÇÃO E MANUTENÇÃO DE SOFTWARE (VEM), 9. , 2021, Joinville. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2021 . p. 31-35. DOI: https://doi.org/10.5753/vem.2021.17214.