Exploring Code Samples Characteristics and Their Impacts on Software Ecosystems

Abstract


Code samples are made available to assist developers to accelerate the learning process of features provided by frameworks. However, we know little about how code samples are developed and consumed. In this paper, we aim to fill this gap by assessing the characteristics of framework code samples. We provide insights into how code samples are maintained and used by developers. We find that most code samples are small and simple, and provide a working environment. They frequently change, for example, to adapt to new framework versions. To further understand the problems faced by developers, we analyze Stack Overflow and 269 issues from code sample repositories. We find that developers face problems when modifying the code samples and the most common issue is related to improvement.

Keywords: code samples, mining software repositories, software maintenance and software ecosystem

References

Menezes, G., Cafeo, B., and Hora, A. (2022). How are framework code samples maintained and used by developers? the case of android and spring boot. Journal of Systems and Software, 185:111146.
Published
2023-09-25
MENEZES, Gabriel; CAFEO, Bruno; HORA, André. Exploring Code Samples Characteristics and Their Impacts on Software Ecosystems. In: SOFTWARE ENGINEERING DOCTORAL AND MASTER THESIS COMPETITION (CTD-ES) - BRAZILIAN CONFERENCE ON SOFTWARE: THEORY AND PRACTICE (CBSOFT), 14. , 2023, Campo Grande/MS. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2023 . p. 25-26. DOI: https://doi.org/10.5753/cbsoft_estendido.2023.233233.