arXivDaily arXiv每日学术速递 周一至周五更新
北美退伍军人节(Veterans Day),12 日无更新
arXiv 1909.01760cs.SEcs.LG
收藏

代码可读性与软件复杂性关系的实证研究

An Empirical Study of the Relationships between Code Readability and Software Complexity

The University of New Orleans(新奥尔良大学)

Duaa Alawad, Manisha Panta, Minhaz Zibran, Md Rakibul Islam

摘要:

代码可读性和软件复杂性是重要的软件质量度量,影响其他软件度量,如可维护性,可重用性,可移植性和可靠性。本文提出了一个实证研究之间的关系代码可读性和程序复杂性。这些结果来自对35个Java程序的分析,这些程序涵盖了23种不同的代码结构。分析包括六个可读性指标和两个复杂性指标。我们的研究从经验上证实了现有的智慧,即可读性和复杂性是负相关的。应用机器学习技术,我们还识别和排名那些代码结构,大大影响代码的可读性。

英文摘要:

Code readability and software complexity are important software quality metrics that impact other software metrics such as maintainability, reusability, portability and reliability. This paper presents an empirical study of the relationships between code readability and program complexity. The results are derived from an analysis of 35 Java programs that cover 23 distinct code constructs. The analysis includes six readability metrics and two complexity metrics. Our study empirically confirms the existing wisdom that readability and complexity are negatively correlated. Applying a machine learning technique, we also identify and rank those code constructs that substantially affect code readability.

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

↑