• DocumentCode
    3571922
  • Title

    Detection of embedded code smells in dynamic web applications

  • Author

    Hung Viet Nguyen ; Hoan Anh Nguyen ; Tung Thanh Nguyen ; Anh Tuan Nguyen ; Nguyen, Tuan N.

  • Author_Institution
    Electr. & Comput. Eng. Dept., Iowa State Univ., Ames, IA, USA
  • fYear
    2012
  • Firstpage
    282
  • Lastpage
    285
  • Abstract
    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.
  • Keywords
    Internet; software maintenance; WebScent; client-side code fragments; dynamic Web applications; embedded code smell detection; maintenance effort; server-side code; software development; Code Smells; Dynamic Web Applications; Embedded Code;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Automated Software Engineering (ASE), 2012 Proceedings of the 27th IEEE/ACM International Conference on
  • Print_ISBN
    978-1-4503-1204-2
  • Type

    conf

  • DOI
    10.1145/2351676.2351724
  • Filename
    6494936