Detalhes do Documento

Understanding the adoption of modern Javascript features: an empirical study on open-source systems

Autor(es): Lucas, Walter ; Nunes, Rafael ; Bonifácio, Rodrigo ; Carvalho, Fausto ; Lima, Ricardo ; Silva, Michael ; Torres, Adriano ; Accioly, Paola ; Monteiro, Eduardo ; Saraiva, João

Data: 2025

Identificador Persistente: https://hdl.handle.net/1822/95662

Origem: RepositóriUM - Universidade do Minho

Assunto(s): Software evolution; Software engineering; Software maintenance; Source code rejuvenation; Mining software repositories


Descrição

JavaScript is a widely used programming language initially designed to make the Web more dynamic in the 1990s. In the last decade, though, its scope has extended far beyond the Web, finding utility in backend development, desktop applications, and even IoT devices. To circumvent the needs of modern programming, JavaScript has undergone a remarkable evolution since its inception, with the groundbreaking release of its sixth version in 2015 (ECMAScript 6 standard). While adopting modern JavaScript features promises several benefits (such as improved code comprehension and maintenance), little is known about which modern features of the language have been used in practice (or even ignored by the community). To fill this gap, in this paper, we report the results of an empirical study that aims to understand the adoption trends of modern JavaScript features, and whether or not developers conduct rejuvenation efforts to replace legacy JavaScript constructs and idioms with modern ones in legacy systems. To this end, we mined the source code history of 158 JavaScript open-source projects, identified contributions to rejuvenate legacy code, and used time series to characterize the adoption trends of modern JavaScript features. The results of our study reveal extensive use of JavaScript modern features which are present in more than 80% of the analyzed projects. Our findings also reveal that (a) the widespread adoption of modern features happened between one and two years after the release of ES6 and, (b) a consistent trend toward increasing the adoption of modern JavaScript language features in open-source projects and (c) large efforts to rejuvenate the source code of their programs.

Tipo de Documento Artigo científico
Idioma Inglês
Contribuidor(es) Universidade do Minho
facebook logo  linkedin logo  twitter logo 
mendeley logo

Documentos Relacionados

Não existem documentos relacionados.