跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 软件工程

arXiv:1703.01690 (cs)
[提交于 2018年8月7日]

标题:Refactoring Legacy JavaScript Code to Use Classes: The Good, The Bad and The Ugly

作者:Leonardo Humberto Silva, Marco Tulio Valente, Alexandre Bergel
查看论文《Refactoring Legacy JavaScript Code to Use Classes: The Good, The Bad and The Ugly》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:JavaScript systems are becoming increasingly complex and large. To tackle the challenges involved in implementing these systems, the language is evolving to include several constructions for programming- in-the-large. For example, although the language is prototype-based, the latest JavaScript standard, named ECMAScript 6 (ES6), provides native support for implementing classes. Even though most modern web browsers support ES6, only a very few applications use the class syntax. In this paper, we analyze the process of migrating structures that emulate classes in legacy JavaScript code to adopt the new syntax for classes introduced by ES6. We apply a set of migration rules on eight legacy JavaScript systems. In our study, we document: (a) cases that are straightforward to migrate (the good parts); (b) cases that require manual and ad-hoc migration (the bad parts); and (c) cases that cannot be migrated due to limitations and restrictions of ES6 (the ugly parts). Six out of eight systems (75%) contain instances of bad and/or ugly cases. We also collect the perceptions of JavaScript developers about migrating their code to use the new syntax for classes.
评论: Paper accepted at 16th International Conference on Software Reuse (ICSR), 2017; 16 pages
主题: 软件工程 (cs.SE); 程序设计语言 (cs.PL)
引用方式: arXiv:1703.01690 [cs.SE]
  (或者 arXiv:1703.01690v1 [cs.SE] 对于此版本)
  https://doi.org/10.48550/arXiv.1703.01690
相关 DOI: https://doi.org/10.1007/978-3-319-56856-0_11

提交历史

来自:Marco Tulio Valente
[v1] 2018年8月7日 星期二 00:00:00 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.SE
< 上一篇   |   下一篇 >
最新 | 近期 | 2018-08
切换浏览方式为:
cs
cs.PL

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站