TY - GEN
T1 - Evolving Trends, Patterns, and Hidden Pitfalls
T2 - 48th International Conference on Software Engineering, ICSE 2026
AU - Chen, Dawei
AU - Jin, Wuxia
AU - Guo, Hui
AU - Qiao, Guanlin
AU - Di, Peng
AU - Liu, Ting
N1 - Publisher Copyright:
© 2026 Copyright held by the owner/author(s).
PY - 2026/9/11
Y1 - 2026/9/11
N2 - 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.
AB - 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.
KW - Empirical Study
KW - JavaScript
KW - Language Feature
KW - TypeScript
UR - https://www.scopus.com/pages/publications/105051876691
U2 - 10.1145/3744916.3764521
DO - 10.1145/3744916.3764521
M3 - 会议稿件
AN - SCOPUS:105051876691
T3 - Proceedings - 2026 IEEE/ACM 48th International Conference on Software Engineering, ICSE 2026
SP - 1444
EP - 1455
BT - Proceedings - 2026 IEEE/ACM 48th International Conference on Software Engineering, ICSE 2026
PB - Association for Computing Machinery, Inc
Y2 - 12 April 2026 through 18 April 2026
ER -