Back to Search Start Over

The Relationship Between Code Smells and Traceable Patterns — Are They Measuring the Same Thing?

Authors :
Kazi Zakia Sultana
Byron J. Williams
Zadia Codabux
Source :
International Journal of Software Engineering and Knowledge Engineering. 27:1529-1547
Publication Year :
2017
Publisher :
World Scientific Pub Co Pte Lt, 2017.

Abstract

It is important to maintain software quality as a software system evolves. Managing code smells in source code contributes towards quality software. While metrics have been used to pinpoint code smells in source code, we present an empirical study on the correlation of code smells with class-level (micro pattern) and method-level (nano-pattern) traceable code patterns. This study explores the relationship between code smells and class-level and method-level structural code constructs. We extracted micro patterns at the class level and nano-patterns at the method level from three versions of Apache Tomcat, three versions of Apache CXF and two J2EE web applications namely PersonalBlog and Roller from Stanford SecuriBench and then compared their distributions in code smell versus noncode smell classes and methods. We found that Immutable and Sink micro patterns are more frequent in classes having code smells compared to the noncode smell classes in the applications we analyzed. On the other hand, LocalReader and LocalWriter nano-patterns are more frequent in code smell methods compared to the noncode smell methods. We conclude that code smells are correlated with both micro and nano-patterns.

Details

ISSN :
17936403 and 02181940
Volume :
27
Database :
OpenAIRE
Journal :
International Journal of Software Engineering and Knowledge Engineering
Accession number :
edsair.doi...........f1b07b7beccfb4e89dae5ae87047a5cd
Full Text :
https://doi.org/10.1142/s0218194017400095