arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2304.14570cs.SE
收藏

构建MSR工具Kaiaulu:设计原则与实践经验

Building the MSR Tool Kaiaulu: Design Principles and Experiences

Carlos Paradis, Rick Kazman

AI总结:

本研究通过行动研究评估多款软件实证研究工具的设计,总结7项关键设计选择与优劣模式,据此开发R包工具Kaiaulu,提出简化数据获取、依托语言惯例、保障可重复性、谨慎复用代码的设计原则。

摘要:

研究背景:自Alitheia Core被提出并随后停用以来,支持软件项目实证研究的工具仍在不断被推出,例如Codeface、Codeface4Smells、GrimoireLab和SmartSHARK,但这些工具都采用了不同的设计选择,且功能存在重叠。研究目的:我们旨在了解这些工具所采用的设计决策(包括优劣之处)及其带来的影响,探究为何工具开发者会重复开发其他工具中已有的功能,并为未来工具的设计提供参考。研究方法:我们采用行动研究法对这些工具进行评估,确定了一组设计原则和反模式,以此为新工具的设计提供依据。研究结果:我们在这些工具中识别出7项主要设计选择:1)抽象债务(Abstraction Debt),2)项目配置文件的使用,3)批处理模式与交互模式的选择,4)数据获取的最小路径,5)熟悉的软件抽象,6)许可协议,7)代码复用的风险。基于观察到的优劣设计决策,我们构建了自己的工具架构,并将其实现为一个R包。研究结论:工具不应要求用户进行繁琐的设置才能获取数据。开发者应考虑其所选语言的惯例和抽象,并在此基础上进行构建,而非重新定义它们。工具应通过利用用于工具自动化的自包含、可读的模式来推广实验可重复性的最佳实践,同时代码复用需谨慎,以避免依赖失效代码。

英文摘要:

Background: Since Alitheia Core was proposed and subsequently retired, tools that support empirical studies of software projects continue to be proposed, such as Codeface, Codeface4Smells, GrimoireLab and SmartSHARK, but they all make different design choices and provide overlapping functionality. Aims: We seek to understand the design decisions adopted by these tools--the good and the bad--along with their consequences, to understand why their authors reinvented functionality already present in other tools, and to help inform the design of future tools. Method: We used action research to evaluate the tools, and to determine a set of principles and anti-patterns to motivate a new tool design. Results: We identified 7 major design choices among the tools: 1) Abstraction Debt, 2) the use of Project Configuration Files, 3) the choice of Batch or Interactive Mode, 4) Minimal Paths to Data, 5) Familiar Software Abstractions, 6) Licensing and 7) the Perils of Code Reuse. Building on the observed good and bad design decisions, we created our own tool architecture and implemented it as an R package. Conclusions: Tools should not require onerous setup for users to obtain data. Authors should consider the conventions and abstractions used by their chosen language and build upon these instead of redefining them. Tools should encourage best practices in experiment reproducibility by leveraging self-contained and readable schemas that are used for tool automation, and reuse must be done with care to avoid depending on dead code.

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

↑