Code Smell detection through metrics for the protection of template methods

Authors

  • René Santaolaya-Salgado Tecnológico Nacional de México/CENIDET (México) Author
  • Elías Alejandro Ramírez-García Tecnológico Nacional de México/CENIDET (México) Author
  • Blanca Dina Valenzuela-Robles Tecnológico Nacional de México/CENIDET (México) Author
  • Olivia Graciela Fragoso-Díaz Tecnológico Nacional de México/CENIDET (México) Author

DOI:

https://doi.org/10.52152/D11107

Keywords:

Template Method, protección funcional, funciones variantes, funciones invariantes, acoplamiento indirecto

Abstract

One of the bad decisions made by a developer is the lack of a good encapsulation in the design pattern "Template Method", when this happens, "Code Smell" appears, which is defined as "symptoms of poor design and implementation choices", these symptoms will be reflected in a high degree of dependency between classes of a program (indirect coupling), thus shortening the lifetime of the software.

Published

2024-09-27

Issue

Section

Technical Note