开源软件开发者如何复用问答网站的架构解决方案:一项实证研究
How Do OSS Developers Reuse Architectural Solutions from Q&A Sites: An Empirical Study
AI总结:
该研究通过挖掘GitHub项目数据与调查从业者的混合方法,探究开源软件开发者复用问答网站架构解决方案的场景、类型、实施方式及挑战,填补了相关领域研究空白。
摘要:
开发者会在问答网站上复用与编程相关的知识,这些知识在功能上匹配他们在开发中遇到的编程问题。尽管针对问答网站已有大量研究,但架构解决方案作为一类高层次且重要的开发相关知识,其复用情况却鲜少被探究。为填补这一空白,我们开展了一项包含挖掘研究和调查研究的混合方法研究。在挖掘研究中,我们从GitHub上的893个开源软件项目中挖掘了984个提交和议题,这些提交和议题明确引用了来自Stack Overflow(SO)和Software Engineering Stack Exchange(SWESE)的架构解决方案。在调查研究中,我们识别出参与这些架构解决方案复用的从业者,并对其中227人进行了调查,以进一步了解从业者如何在开源软件开发中复用来自问答网站的架构解决方案。我们的研究发现包括:(1)开源软件从业者使用来自问答网站的架构解决方案解决种类繁多的架构问题,其中组件设计问题、架构反模式和安全问题占主导;(2)来自问答网站的七类架构解决方案被复用以解决这些问题,其中架构重构、框架使用和架构策略是被复用最多的三类架构解决方案;(3)开源软件开发者通常依赖临时方式(例如非正式、即兴或非结构化的方法)整合来自SO的架构解决方案,依靠个人经验和直觉而非标准化或系统化的实践;(4)使用来自SO的架构解决方案存在多种挑战,例如开源软件从业者抱怨他们需要花费大量时间调整此类架构解决方案,以解决其开源软件开发中出现的设计问题,而且使用未针对其开源项目设计情境定制的架构解决方案颇具难度。
英文摘要:
Developers reuse programming-related knowledge on Q&A sites that functionally matches the programming problems they encounter in their development. Despite extensive research on Q&A sites, being a high-level and important type of development-related knowledge, architectural solutions and their reuse are rarely explored. To fill this gap, we conducted a mixed-methods study that includes a mining study and a survey study. For the mining study, we mined 984 commits and issues from 893 OSS projects on GitHub that explicitly referenced architectural solutions from SO and SWESE. For the survey study, we identified practitioners involved in the reuse of these architectural solutions and surveyed 227 of them to further understand how practitioners reuse architectural solutions from Q&A sites in their OSS development. Our findings: (1) OSS practitioners use architectural solutions from Q&A sites to solve a large variety of architectural problems, wherein Component design issue, Architectural anti-pattern, and Security issue are dominant; (2) Seven categories of architectural solutions from Q&A sites have been reused to solve those problems, among which Architectural refactoring, Use of frameworks, and Architectural tactic are the three most reused architectural solutions; (3) OSS developers often rely on ad hoc ways (e.g., informal, improvised, or unstructured approaches) to incorporate architectural solutions from SO, drawing on personal experience and intuition rather than standardized or systematic practices; (4) Using architectural solutions from SO comes with a variety of challenges, e.g., OSS practitioners complain that they need to spend significant time to adapt such architectural solutions to address design concerns raised in their OSS development, and it is challenging to use architectural solutions that are not tailored to the design context of their OSS projects.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。