English

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

Software Engineering 2019-09-05 v1 Machine Learning

Abstract

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.

Keywords

Cite

@article{arxiv.1909.01760,
  title  = {An Empirical Study of the Relationships between Code Readability and Software Complexity},
  author = {Duaa Alawad and Manisha Panta and Minhaz Zibran and Md Rakibul Islam},
  journal= {arXiv preprint arXiv:1909.01760},
  year   = {2019}
}

Comments

7 pages, 2 figures, 3 tables

R2 v1 2026-06-23T11:05:14.377Z