Primitive enthusiasm a road to primitive obsession /
Code bad smells usually indicate that there are low quality, hardly readable and maintainable parts in the source code. Static analysis tools can help programmers to identify bad smells and guide the refactoring process. Bad smell detection techniques have a considerable amount of literature althoug...
Elmentve itt :
Szerzők: | |
---|---|
Testületi szerző: | |
Dokumentumtípus: | Könyv része |
Megjelent: |
2018
|
Sorozat: | Conference of PhD Students in Computer Science
11 |
Kulcsszavak: | Számítástechnika |
Online Access: | http://acta.bibl.u-szeged.hu/61785 |
Tartalmi kivonat: | Code bad smells usually indicate that there are low quality, hardly readable and maintainable parts in the source code. Static analysis tools can help programmers to identify bad smells and guide the refactoring process. Bad smell detection techniques have a considerable amount of literature although there are still a few types that need further study by the research community. The Primitive Obsession smell is one of them. In this paper, we studied the definition of Primitive Obsession and based on that we introduced a method level metric, Primitive Enthusiasm, that can be used as an indicator for the smell. We implemented an algorithm for Primitive Enthusiasm calculation on Java code and analysed two real life Java systems along with a sample project. As no benchmark was available, we performed a manual validation of the results. |
---|---|
Terjedelem/Fizikai jellemzők: | 134-137 |