Detection of Embedded Code Smells in Dynamic Web Applications

被引:0
作者
Hung Viet Nguyen [1 ]
Hoan Anh Nguyen [1 ]
Tung Thanh Nguyen [1 ]
Anh Tuan Nguyen [1 ]
Nguyen, Tien N. [1 ]
机构
[1] Iowa State Univ, Elect & Comp Engn Dept, Ames, IA 50011 USA
来源
2012 PROCEEDINGS OF THE 27TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE) | 2012年
关键词
Code Smells; Dynamic Web Applications; Embedded Code;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In dynamic Web applications, there often exists a type of code smells, called embedded code smells, that violate important principles in software development such as software modularity and separation of concerns, resulting in much maintenance effort. Detecting and fixing those code smells is crucial yet challenging since the code with smells is embedded and generated from the server-side code. We introduce WebScent, a tool to detect such embedded code smells. WebScent first detects the smells in the generated code, and then locates them in the server-side code using the mapping between client-side code fragments and their embedding locations in the server program, which is captured during the generation of those fragments. Our empirical evaluation on real-world Web applications shows that 34%-81% of the tested server files contain embedded code smells. We also found that the source files with more embedded code smells are likely to have more defects and scattered changes, thus potentially require more maintenance effort.
引用
收藏
页码:282 / 285
页数:4
相关论文
共 2 条
[1]  
Nguyen H. A., 2011, IEEE TSE
[2]  
Pressman R.S., 2000, SOFTWARE ENG PRACTIT