Identifying Classes in Legacy JavaScript Code. Issue 8 (24th April 2017)
- Record Type:
- Journal Article
- Title:
- Identifying Classes in Legacy JavaScript Code. Issue 8 (24th April 2017)
- Main Title:
- Identifying Classes in Legacy JavaScript Code
- Authors:
- Silva, Leonardo Humberto
Valente, Marco Tulio
Bergel, Alexandre
Anquetil, Nicolas
Etien, Anne - Abstract:
- Abstract: JavaScript is the most popular programming language for the Web. Although the language is prototype‐based, developers can emulate class‐based abstractions in JavaScript to master the increasing complexity of their applications. Identifying classes in legacy JavaScript code can support these developers at least in the following activities: (1) program comprehension; (2) migration to the new JavaScript syntax that supports classes; and (3) implementation of supporting tools, including IDEs with class‐based views and reverse engineering tools. In this paper, we propose a strategy to detect class‐based abstractions in the source code of legacy JavaScript systems. We report on a large and in‐depth study to understand how class emulation is employed, using a dataset of 918 JavaScript applications available on GitHub. We found that almost 70% of the JavaScript systems we study make some usage of classes. We also performed a field study with the main developers of 60 popular JavaScript systems to validate our findings. The overall results range from 97% to 100% for precision, from 70% to 89% for recall, and from 82% to 94% for F‐score.
- Is Part Of:
- Journal of software. Volume 29:Issue 8(2017)
- Journal:
- Journal of software
- Issue:
- Volume 29:Issue 8(2017)
- Issue Display:
- Volume 29, Issue 8 (2017)
- Year:
- 2017
- Volume:
- 29
- Issue:
- 8
- Issue Sort Value:
- 2017-0029-0008-0000
- Page Start:
- n/a
- Page End:
- n/a
- Publication Date:
- 2017-04-24
- Subjects:
- JavaScript -- Program comprehension -- Reverse engineering
Software engineering -- Periodicals
Computer software -- Development -- Periodicals
Software maintenance -- Periodicals
005.1 - Journal URLs:
- http://onlinelibrary.wiley.com/journal/10.1002/(ISSN)2047-7481 ↗
http://onlinelibrary.wiley.com/ ↗ - DOI:
- 10.1002/smr.1864 ↗
- Languages:
- English
- ISSNs:
- 2047-7473
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library DSC - BLDSS-3PM
British Library HMNTS - ELD Digital store - Ingest File:
- 2954.xml