Extracting client-side web application code
Authors:
Open Access
- 16 April 2012
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 819-828
Abstract
The web application domain is one of the fastest growing and most wide-spread application domains today. By utilizing fast, modern web browsers and advanced scripting techniques, web developers are developing highly interactive applications that can, in terms of user-experience and responsiveness, compete with standard desktop applications. A web application is composed of two equally important parts: the server-side and the client-side. The client-side acts as a user-interface to the application, and can be viewed as a collection of behaviors. Similar behaviors are often used in a large number of applications, and facilitating their reuse offers considerable benefits. However, due to client-side specifics, such as multi-language implementation and extreme dynamicity, identifying and extracting code responsible for a certain behavior is difficult. In this paper we present a semi-automatic method for extracting client-side web application code implementing a certain behavior. We show how by analyzing the execution of a usage scenario, code responsible for a certain behavior can be identified, how dependencies between different parts of the application can be tracked, and how in the end only the code responsible for a certain behavior can be extracted. Our evaluation shows that the method is capable of extracting stand-alone behaviors, while achieving considerable savings in terms of code size and application performance.Keywords
This publication has 9 references indexed in Scilit:
- Reusing Web Application User-Interface ControlsLecture Notes in Computer Science, 2011
- Automatically Recommending Triage Decisions for Pragmatic Reuse Tasks2009
- FireCrystal: Understanding interactive behaviors in dynamic web pages2009
- Script InSight: Using Models to Explore JavaScript Code from the Browser View2009
- Semi-Automating Pragmatic Reuse Tasks2008
- Web Application Slicing in Presence of Dynamic Code GenerationAutomated Software Engineering, 2005
- Dynamic program slicing1990
- Integrating noninterfering versions of programsACM Transactions on Programming Languages and Systems, 1989
- Interprocedural slicing using dependence graphsACM SIGPLAN Notices, 1988