arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1907.05564cs.SE
收藏

框架代码示例:开发人员如何维护和使用它们?

Framework Code Samples: How Are They Maintained and Used by Developers?

Gabriel Menezes, Bruno Cafeo, Andre Hora

摘要:

背景:现代软件系统通常构建在框架之上。为了加速框架提供的功能的学习过程,代码示例可用于帮助开发人员。然而,我们对代码示例实际上是如何开发的知之甚少。目的:在本文中,我们的目标是通过评估框架代码样本的特点来填补这一空白。我们提供有关开发人员如何维护和使用代码示例的见解。方法:我们分析了Android和SpringBoot的233个代码样本,并评估了与其源代码,演变,流行程度和客户端使用相关的方面。结果:我们发现大多数代码样本都很小,很简单,为客户端提供了一个工作环境,并且依赖于自动化的构建工具。它们随着时间的推移而频繁变化,例如,以适应新的框架版本。我们还发现,客户端通常会派生代码样本,但很少修改它们。结论:我们为代码示例的创建者和客户提供了一组经验教训和启示,以改进维护和使用活动。

英文摘要:

Background: Modern software systems are commonly built on the 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 actually developed. Aims: In this paper, we aim to fill this gap by assessing the characteristics of framework code samples. We provide insights on how code samples are maintained and used by developers. Method: We analyze 233 code samples of Android and SpringBoot, and assess aspects related to their source code, evolution, popularity, and client usage. Results: We find that most code samples are small and simple, provide a working environment to the clients, and rely on automated build tools. They change frequently over time, for example, to adapt to new framework versions. We also detect that clients commonly fork the code samples, however, they rarely modify them. Conclusions: We provide a set of lessons learned and implications to creators and clients of code samples to improve maintenance and usage activities.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑