Android(操作系统)
计算机科学
编码(集合论)
软件工程
人气
代码评审
软件维护
软件
静态程序分析
操作系统
程序设计语言
软件开发
心理学
社会心理学
集合(抽象数据类型)
作者
Gabriel Menezes,Bruno Cafeo,André Hora
标识
DOI:10.1016/j.jss.2021.111146
摘要
Modern software systems are commonly built on top of frameworks. To accelerate the learning process of features provided by frameworks, code samples are made available to assist developers. 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 analyze over 230 code samples provided by Android and Spring Boot, and assess aspects related to their code, evolution, popularity, and client usage. We find that most code samples are small and simple, provide a working environment for the clients, and rely on automated build tools. They frequently change, for example, to adapt to new framework versions. We also detect that clients commonly fork the code samples, however, they rarely modify them. To further understand the problems faced by developers, we analyze 614 Stack Overflow questions about the code samples and 269 issues from code sample repositories. We find that developers face problems when trying to modify the code samples and the most common issue is related to improvement. Finally, we propose implications to creators and clients of code samples to improve maintenance and usage activities.
科研通智能强力驱动
Strongly Powered by AbleSci AI