Md Atique Reza Chowdhury, Rabe Abdalkareem, Emad Shihab et Bram Adams
Article de revue (2021)
Un lien externe est disponible pour ce documentAbstract
Nowadays, developing software would be unthinkable without the use of third-party packages. Although such code reuse helps to achieve rapid continuous delivery of software to end-users, blindly reusing code has its pitfalls. For example, prior work has investigated the rationale for using packages that implement simple functionalities, known as trivial packages (i.e., in terms of the code size and complexity). This prior work showed that although these trivial packages were simple, they were popular and prevalent in the npm ecosystem. This popularity and prevalence of trivial packages peaked our interest in questioning the ‘triviality of trivial packages’. To better understand and examine the triviality of trivial packages, we mine a large set of JavaScript projects that use trivial npm packages and evaluate their relative centrality. Specifically, we evaluate the triviality from two complementary points of view: based on project usage and ecosystem usage of these trivial packages. Our result shows that trivial packages are being used in central JavaScript files of a software project. Additionally, by analyzing all external package API calls in these JavaScript files, we found that a high percentage of these API calls are attributed to trivial packages. Therefore, these packages play a significant role in JavaScript files. Furthermore, in the package dependency network, we observed that 16.8 percent packages are trivial and in some cases removing a trivial package can impact approximately 29 percent of the ecosystem. Overall, our finding indicates that although smaller in size and complexity, trivial packages are highly depended on packages by JavaScript projects. Additionally, our study shows that although they might be called trivial, nothing about trivial packages is trivial.
Mots clés
| Matériel d'accompagnement: | |
|---|---|
| Département: | Département de génie informatique et génie logiciel |
| URL de PolyPublie: | https://publications.polymtl.ca/47463/ |
| Titre de la revue: | IEEE Transactions on Software Engineering (vol. 48, no 8) |
| Maison d'édition: | IEEE |
| DOI: | 10.1109/tse.2021.3068901 |
| URL officielle: | https://doi.org/10.1109/tse.2021.3068901 |
| Date du dépôt: | 18 avr. 2023 14:59 |
| Dernière modification: | 11 sept. 2026 15:01 |
| Citer en APA 7: | Chowdhury, M. A. R., Abdalkareem, R., Shihab, E., & Adams, B. (2021). On the untriviality of trivial packages: an empirical study of npm JavaScript packages. IEEE Transactions on Software Engineering, 48(8), 2695-2708. https://doi.org/10.1109/tse.2021.3068901 |
|---|---|
Statistiques
Dimensions
