arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.17286cs.SE
收藏

软件架构文档化的研究

A Study of Documentation for Software Architecture

Neil A. Ernst, Martin P. Robillard

AI总结:

本文通过65人参与的对照问卷实验,研究软件架构文档格式对新人理解系统的影响,发现文档格式与理解表现无显著关联,而先前接触源代码和所寻求的架构信息类型才是关键因素。

摘要:

文档化是传播软件架构知识的重要机制。软件项目团队可以采用截然不同的格式来记录软件架构,从非结构化的叙述到标准化的文档。我们探讨了这种文档格式在多大程度上对加入软件项目并试图理解其架构的新成员可能产生影响。我们开展了一项基于问卷的对照研究,要求65名参与者使用两种随机分配的文档格式之一来回答软件架构理解问题:叙述性文章和结构化文档。我们使用贝叶斯有序分类回归分析了与答案质量相关的因素,观察到架构文档格式与架构理解任务表现之间没有显著关联。相反,参与者先前接触过系统源代码是与答案质量相关的主导因素。我们还观察到,对于需要应用和创造活动的题目,其答案与使用系统源代码来回答问题之间存在统计上显著的关联,而文档格式或对系统的熟悉程度则没有这种关联。参与者对文档格式的主观感受相当:尽管更多参与者认为结构化文档更易于浏览和用于编写代码,但这种关系在统计上并不显著。我们得出结论:在所研究的有限实验情境下,我们的结果与“架构文档格式很重要”这一假设相矛盾。我们揭示了与有效使用软件架构文档相关的两个更重要的因素:先前对源代码的熟悉程度,以及所寻求的架构信息类型。

英文摘要:

Documentation is an important mechanism for disseminating software architecture knowledge. Software project teams can employ vastly different formats for documenting software architecture, from unstructured narratives to standardized documents. We explored to what extent this documentation format may matter to newcomers joining a software project and attempting to understand its architecture. We conducted a controlled questionnaire-based study wherein we asked 65 participants to answer software architecture understanding questions using one of two randomly-assigned documentation formats: narrative essays, and structured documents. We analyzed the factors associated with answer quality using a Bayesian ordered categorical regression and observed no significant association between the format of architecture documentation and performance on architecture understanding tasks. Instead, prior exposure to the source code of the system was the dominant factor associated with answer quality. We also observed that answers to questions that require applying and creating activities were statistically significantly associated with the use of the system's source code to answer the question, whereas the document format or level of familiarity with the system were not. Subjective sentiment about the documentation format was comparable: Although more participants agreed that the structured document was easier to navigate and use for writing code, this relation was not statistically significant. We conclude that, in the limited experimental context studied, our results contradict the hypothesis that the format of architectural documentation matters. We surface two more important factors related to effective use of software architecture documentation: prior familiarity with the source code, and the type of architectural information sought.

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

↑