EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

Refactoring Code Smells in Open Source Projects: A Hands-on Approach to Teaching Software Maintenance

Carla Bezerra, Victor Anthony Alves, Antônio Hugo Lobo, João Paulo Queiroz, Lara Lima, Paulo Meirelles

Journal of Software Engineering Research and Development · 02.05.2026 · 14 (1) · 44-61

DOI: 10.5753/jserd.2026.5688 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Journal of Software Engineering Research and Development, online erschienen am 02.05.2026. Verfasst von Carla Bezerra und 5 weiteren Autor:innen. Die Arbeit nennt 52 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Code smells are suboptimal structures that undermine software quality. While refactoring is the standard technique to address them, its manual application can degrade code if done without discipline. Despite its importance, refactoring is rarely explored in depth in undergraduate computing courses, creating a gap between academia and industry. Simultaneously, Open Source Software (OSS) projects offer authentic, hands-on learning environments for software maintenance. To address the academic gap and leverage this opportunity, this paper presents and evaluates a hands-on pedagogical approach for teaching code smell refactoring through student contributions to OSS projects. We implemented this approach in two undergraduate Software Quality and Maintenance courses. Our analysis of students' learning experiences reveals that they recognized quality improvements and the connection between refactoring and testing. However, they faced challenges with code complexity and cross-file changes, which sometimes inadvertently introduced new code smells. Regarding the OSS experience, students reported professional growth but struggled with contribution workflows and receiving feedback from maintainers. Our findings offer valuable insights and propose actionable pedagogical recommendations for educators seeking to integrate advanced software maintenance practices into their curricula by leveraging the real-world environment of OSS.

Zitieren

APA

Bezerra, C., Alves, V. A., Lobo, A. H., Queiroz, J. P., Lima, L., & Meirelles, P. (2026). Refactoring Code Smells in Open Source Projects: A Hands-on Approach to Teaching Software Maintenance. Journal of Software Engineering Research and Development, 14(1), 44-61. https://doi.org/10.5753/jserd.2026.5688

Vancouver

Bezerra C, Alves VA, Lobo AH, Queiroz JP, Lima L, Meirelles P. Refactoring Code Smells in Open Source Projects: A Hands-on Approach to Teaching Software Maintenance. Journal of Software Engineering Research and Development. 2026;14(1):44-61. doi:10.5753/jserd.2026.5688

BibTeX
@article{Bezerra2026,
  author = {Bezerra, Carla and Alves, Victor Anthony and Lobo, Antônio Hugo and Queiroz, João Paulo and Lima, Lara and Meirelles, Paulo},
  title = {Refactoring Code Smells in Open Source Projects: A Hands-on Approach to Teaching Software Maintenance},
  journal = {Journal of Software Engineering Research and Development},
  year = {2026},
  volume = {14},
  number = {1},
  pages = {44--61},
  doi = {10.5753/jserd.2026.5688}
}
Kostenlos starten →