JSNOSE: Detecting JavaScript Code Smells | IEEE Conference Publication | IEEE Xplore

JSNOSE: Detecting JavaScript Code Smells


Abstract:

JavaScript is a powerful and flexible prototype-based scripting language that is increasingly used by developers to create interactive web applications. The language is i...Show More

Abstract:

JavaScript is a powerful and flexible prototype-based scripting language that is increasingly used by developers to create interactive web applications. The language is interpreted, dynamic, weakly-typed, and has first-class functions. In addition, it interacts with other web languages such as CSS and HTML at runtime. All these characteristics make JavaScript code particularly error-prone and challenging to write and maintain. Code smells are patterns in the source code that can adversely influence program comprehension and maintainability of the program in the long term. We propose a set of 13 JavaScript code smells, collected from various developer resources. We present a JavaScript code smell detection technique called JSNOSE. Our metric-based approach combines static and dynamic analysis to detect smells in client-side code. This automated technique can help developers to spot code that could benefit from refactoring. We evaluate the smell finding capabilities of our technique through an empirical study. By analyzing 11 web applications, we investigate which smells detected by JSNOSE are more prevalent.
Date of Conference: 22-23 September 2013
Date Added to IEEE Xplore: 28 October 2013
Electronic ISBN:978-1-4673-5739-5
Conference Location: Eindhoven, Netherlands

References

References is not available for this document.