软件接口克隆的影响的表征和评估
Characterizing and Evaluating The Impact of Software Interface Clones
摘要:
软件接口旨在描述控制逻辑模块之间交互的契约。如果设计良好,接口可以显著降低软件复杂性并简化可维护性。然而,随着软件的发展,软件接口的组织和质量逐渐恶化。因此,这通常会导致开发成本增加,代码质量降低和可重用性降低。代码克隆是源代码中最常见的不良气味之一。这种设计缺陷可能会出现在接口中,因为在多个接口中重复方法/API声明。从它们指定的公共服务/API的角度来看,这些接口是相似的,因此它们表明应用程序服务的组织不好。在本文中,我们的接口克隆设计缺陷的特点,并说明它通过从现实世界中的开源软件应用程序的例子。我们进行了一项实证研究,涵盖了9个真实世界的开源软件应用程序,以量化接口克隆的存在,并评估其对界面设计质量的影响。实证研究结果表明,界面克隆现象广泛存在于软件界面中。它们还表明,接口克隆的存在可能会导致接口内聚性的降低,并表明在实现级别存在相当多的代码克隆。
英文摘要:
Software Interfaces are meant to describe contracts governing interactions between logic modules. Interfaces, if well designed, significantly reduce software complexity and ease maintainability . However, as software evolves, the organization and the quality of software interfaces gradually deteriorate. As a consequence, this often leads to increased development cost, lower code quality and reduced reusability . Code clones are one of the most known bad smells in source code. This design defect may occur in interfaces by duplicating method/API declarations in several interfaces. Such interfaces are similar from the point of view of public services/APIs they specify, thus they indicate a bad organization of application services. In this paper, we characterize the interface clone design defect and illustrate it via examples taken from real-world open source software applications. We conduct an empirical study covering nine real-world open source software applications to quantify the presence of interface clones and evaluate their impact on interface design quality . The results of the empirical study show that interface clones are widely present in software interfaces. They also show that the presence of interface clones may cause a degradation of interface cohesion and indicate a considerable presence of code clones at implementations level.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。