跳到主要导航 跳到搜索 跳到主要内容

Evolving Trends, Patterns, and Hidden Pitfalls: Unveiling JavaScript Feature Usage in the Wild

  • Dawei Chen
  • , Wuxia Jin
  • , Hui Guo
  • , Guanlin Qiao
  • , Peng Di
  • , Ting Liu
  • Xi'an Jiaotong University
  • Ant Group

科研成果: 书/报告/会议事项章节 › 会议稿件 › 同行评审

摘要

JavaScript offers a wide range of language features, providing developers with multiple ways - known as feature alternatives - to accomplish tasks. While this flexibility is beneficial, improper usage of feature alternatives can lead to code being bug-prone and challenging to maintain. Therefore, exploring how language feature alternatives are utilized in the wild is vital to providing valuable insights for the language community. Existing research has studied individual JavaScript features; however, there is still a gap in understanding the negative patterns that arise from the improper or combined use of feature alternatives. To fill this gap, we collected 3,066 open-source project versions and conducted a comprehensive empirical analysis of twelve JavaScript (and TypeScript) features with alternative implementations, revealing language feature alternatives' evolving trends (RQ1), usage patterns (RQ2), and code smell issues (RQ3). To support this study, we also designed DiTU, a query-based heuristic feature usage analysis method to detect feature usage from large-scale repositories. Our study revealed twelve usage patterns, with seven of them further evaluated as code smell patterns. Additionally, we introduced nine insightful metrics that provide a deeper understanding of these patterns. Our results benefit language designers, users, and tool developers in navigating the evolving landscape of JavaScript.

源语言英语
主期刊名Proceedings - 2026 IEEE/ACM 48th International Conference on Software Engineering, ICSE 2026
出版商Association for Computing Machinery, Inc
页1444-1455
页数12
ISBN(电子版)9798400720253
DOI
出版状态已出版 - 11 9月 2026
活动48th International Conference on Software Engineering, ICSE 2026 - Rio de Janeiro, 巴西
期限: 12 4月 2026 → 18 4月 2026

丛书

姓名Proceedings - 2026 IEEE/ACM 48th International Conference on Software Engineering, ICSE 2026

会议

会议48th International Conference on Software Engineering, ICSE 2026
国家/地区巴西
市Rio de Janeiro
时期12/04/26 → 18/04/26

学术指纹

探究 'Evolving Trends, Patterns, and Hidden Pitfalls: Unveiling JavaScript Feature Usage in the Wild' 的科研主题。它们共同构成独一无二的学术指纹。

引用此