Back to Search
Start Over
The Relationship Between Code Smells and Traceable Patterns — Are They Measuring the Same Thing?
- 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.
- Subjects :
- Source code
Computer Networks and Communications
Computer science
media_common.quotation_subject
02 engineering and technology
computer.software_genre
Software_SOFTWAREENGINEERING
Artificial Intelligence
0202 electrical engineering, electronic engineering, information engineering
Web application
Software system
media_common
Programming language
business.industry
Code smell
020206 networking & telecommunications
020207 software engineering
Computer Graphics and Computer-Aided Design
Software quality
Micro pattern
Quality software
InformationSystems_MISCELLANEOUS
business
Class level
computer
Software
Subjects
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