Bibliographic Details
| Title: |
The Relationship Between Code Smells and Traceable Patterns - Are They Measuring the Same Thing? |
| Authors: |
Codabux, Zadia, Sultana, Kazi Zakia, Williams, Byron J. |
| Source: |
International Journal of Software Engineering & Knowledge Engineering; Dec2017, Vol. 27 Issue 9/10, p1529-1547, 19p |
| Subject Terms: |
COMPUTER software quality control, SOURCE code, WEB-based user interfaces, PATTERN recognition systems, STATISTICAL correlation |
| 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. [ABSTRACT FROM AUTHOR] |
|
Copyright of International Journal of Software Engineering & Knowledge Engineering is the property of World Scientific Publishing Company and its content may not be copied or emailed to multiple sites without the copyright holder's express written permission. Additionally, content may not be used with any artificial intelligence tools or machine learning technologies. However, users may print, download, or email articles for individual use. This abstract may be abridged. No warranty is given about the accuracy of the copy. Users should refer to the original published version of the material for the full abstract. (Copyright applies to all Abstracts.) |
| Database: |
Complementary Index |