警告:指示架构侵蚀的违规症状
Warnings: Violation Symptoms Indicating Architecture Erosion
AI总结:
本研究从开发者视角调查了代码评审评论中的架构违规症状特征,通过分析四个开源项目的606条评论,归纳出10类违规症状、常用术语与语言模式及解决措施,为理解架构侵蚀和改进开发维护实践提供了指导。
摘要:
随着软件系统的演进,其架构趋于退化,并逐渐阻碍软件维护和演进活动,对系统的质量属性产生负面影响。架构侵蚀现象背后的主要根本原因源于违规症状(例如对架构模式的违反)。以往的研究侧重于使用架构一致性检查方法来检测软件系统中的违规。然而,代码评审评论也是丰富的资源,可能包含关于架构违规的大量讨论。在本研究中,我们从开发者的角度调查了代码评审评论中架构违规症状的特征。我们使用一组与违规症状相关的关键词,从 OpenStack 和 Qt 社区的四个流行 OSS 项目中收集了 606 条(共 21,583 条)代码评审评论。我们手动分析了收集到的 606 条评审评论,以提供违规症状的类别和语言模式,以及开发者如何解决这些违规症状的反应。我们的研究结果表明:(1)开发者在代码评审过程中讨论了 10 类违规症状;(2)表达违规症状的常用术语是“inconsistent”和“violate”,最常用的语言模式是问题发现;(3)重构和移除代码是解决违规症状的主要措施(90%),而少数违规症状被开发者忽略。我们的研究结果表明,对违规症状的调查可以帮助研究人员更好地理解架构侵蚀的特征,并促进开发和维护活动,开发者应明确管理违规症状,不仅是为了解决现有的架构违规,也是为了防止未来的违规。
英文摘要:
As a software system evolves, its architecture tends to degrade, and gradually impedes software maintenance and evolution activities and negatively impacts the quality attributes of the system. The main root cause behind architecture erosion phenomenon derives from violation symptoms (such as violations of architecture pattern). Previous studies focus on detecting violations in software systems using architecture conformance checking approaches. However, code review comments are also rich sources that may contain extensive discussions regarding architecture violations. In this work, we investigated the characteristics of architecture violation symptoms in code review comments from the developers' perspective. We employed a set of keywords related to violation symptoms to collect 606 (out of 21,583) code review comments from four popular OSS projects in the OpenStack and Qt communities. We manually analyzed the collected 606 review comments to provide the categories and linguistic patterns of violation symptoms, as well as the reactions how developers addressed them. Our findings show that: (1) 10 categories of violation symptoms are discussed by developers during the code review process; (2) The frequently-used terms of expressing violation symptoms are "inconsistent" and "violate", and the most frequently-used linguistic pattern is Problem Discovery; (3) Refactoring and removing code are the major measures (90%) to tackle violation symptoms, while a few violation symptoms were ignored by developers. Our findings suggest that the investigation of violation symptoms can help researchers better understand the characteristics of architecture erosion and facilitate the development and maintenance activities, and developers should explicitly manage violation symptoms, not only for addressing the existing architecture violations but also preventing future violations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。