Skip to main navigation Skip to search Skip to main content

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

Research output: Chapter in Book/Report/Conference proceeding › Conference contribution › peer-review

Abstract

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.

Original languageEnglish
Title of host publicationProceedings - 2026 IEEE/ACM 48th International Conference on Software Engineering, ICSE 2026
PublisherAssociation for Computing Machinery, Inc
Pages1444-1455
Number of pages12
ISBN (Electronic)9798400720253
DOIs
StatePublished - 11 Sep 2026
Event48th International Conference on Software Engineering, ICSE 2026 - Rio de Janeiro, Brazil
Duration: 12 Apr 2026 → 18 Apr 2026

Publication series

NameProceedings - 2026 IEEE/ACM 48th International Conference on Software Engineering, ICSE 2026

Conference

Conference48th International Conference on Software Engineering, ICSE 2026
Country/TerritoryBrazil
CityRio de Janeiro
Period12/04/26 → 18/04/26

Keywords

  • Empirical Study
  • JavaScript
  • Language Feature
  • TypeScript

Fingerprint

Dive into the research topics of 'Evolving Trends, Patterns, and Hidden Pitfalls: Unveiling JavaScript Feature Usage in the Wild'. Together they form a unique fingerprint.

Cite this