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

可视化程序设计语言中的重复代码模式挖掘

Duplicated Code Pattern Mining in Visual Programming Languages

Miguel Terra-Neves, João Nadkarni, Miguel Ventura, Pedro Resende, Hugo Veiga, António Alegria

摘要:

可视化程序设计语言(VPL),加上可视化编程环境中常见的高级抽象,使技术知识较少的用户能够成为熟练的程序员。然而,VPL所需的较低技能水平也意味着程序员更有可能不遵守软件开发的最佳实践,从而产生具有高技术债务的系统,因此可维护性较差。重复的代码是这种技术债务的一个重要例子。事实上,我们观察到OutSystems VPL代码库中的重复数量可以高达$39\%$。基于文本的程序设计语言中的重复代码检测仍然是一个活跃的研究领域,对软件的可维护性和演化具有重要意义。然而,据我们所知,文献中的重复代码检测的VPL是非常有限的。我们提出了一种新的和可扩展的重复代码模式挖掘算法,利用视觉结构的VPL,以便不仅检测重复的代码,但也突出重复的代码模式,解释报告的重复。所提出的方法的性能进行评估,在广泛的现实世界中的移动和Web应用程序开发使用OutSystems。

英文摘要:

Visual Programming Languages (VPLs), coupled with the high-level abstractions that are commonplace in visual programming environments, enable users with less technical knowledge to become proficient programmers. However, the lower skill floor required by VPLs also entails that programmers are more likely to not adhere to best practices of software development, producing systems with high technical debt, and thus poor maintainability. Duplicated code is one important example of such technical debt. In fact, we observed that the amount of duplication in the OutSystems VPL code bases can reach as high as $39\%$. Duplicated code detection in text-based programming languages is still an active area of research with important implications regarding software maintainability and evolution. However, to the best of our knowledge, the literature on duplicated code detection for VPLs is very limited. We propose a novel and scalable duplicated code pattern mining algorithm that leverages the visual structure of VPLs in order to not only detect duplicated code, but also highlight duplicated code patterns that explain the reported duplication. The performance of the proposed approach is evaluated on a wide range of real-world mobile and web applications developed using OutSystems.

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

↑