Please use this identifier to cite or link to this item: https://ruomoplus.lib.uom.gr/handle/8000/1981
Title: Code beauty is in the eye of the beholder: Exploring the relation between code beauty and quality
Authors: Maikantis, Theodoros 
Natsiou, Ilianna 
Volioti, Cristina 
Arvanitou, Elvira-Maria 
Ampatzoglou, Apostolos 
Mittas, Nikolaos 
Chatzigeorgiou, Alexander 
Xinogalos, Stelios 
Author Department Affiliations: Department of Applied Informatics 
Department of Applied Informatics 
Department of Applied Informatics 
Department of Applied Informatics 
Department of Applied Informatics 
Department of Applied Informatics 
Author School Affiliations: School of Information Sciences 
School of Information Sciences 
School of Information Sciences 
School of Information Sciences 
School of Information Sciences 
School of Information Sciences 
Subjects: FRASCATI__Natural sciences
FRASCATI__Natural sciences__Computer and information sciences
Keywords: Code beauty
Code quality
Explainable artificial intelligence
SHAP
Technical debt
Issue Date: 1-Nov-2025
Publisher: Elsevier
Journal: The Journal of systems and software 
ISSN: 0164-1212
Volume: 229
Start page: 112494
Abstract: 
Software artifacts and source code are often viewed as pure technical constructs aiming primarily at delivering specific functionality to the end users. However, almost each line of a computer program is the result of software engineer's craftsmanship and thus reflects their skills and capabilities, but also their aesthetic view of how code should be written. Additionally, by nature, the code is not an artifact that is managed by a single person: the code is peer-reviewed, in some cases programmed in pairs, or maintained by different people. In this respect, the first impression for the quality of a code is usually a matter of “reading” the “beauty” of the code and then diving into the details of the actual implementation. This “first-look” impression can psychologically bias the software engineers, either positively or negatively and affect their evaluation. In this article we propose a novel code beauty model (accompanied with metrics) and empirically explore: (a) if different software engineers perceive code beauty in the same way; (b) if the proposed code beauty metrics are correlated to the perceived code beauty by individual software engineers; and (c) if code beauty metrics are correlated to software maintainability. The results of the study suggest: (a) that code beauty is highly subjective and different software engineers perceive a code chunk as beautiful or not in an inconsistent way; (b) that some code beauty metrics can be considered as correlated to maintainability; and therefore, the “first-look” impression might to some extent be representative of the quality of the reviewed code chunk.
URI: https://ruomoplus.lib.uom.gr/handle/8000/1981
DOI: 10.1016/j.jss.2025.112494
Rights: Αναφορά Δημιουργού-Μη Εμπορική Χρήση 4.0 Διεθνές
Attribution-NonCommercial-NoDerivatives 4.0 Διεθνές
Attribution-NonCommercial-NoDerivatives 4.0 Διεθνές
Attribution-NonCommercial-NoDerivatives 4.0 Διεθνές
Corresponding Item Departments: Department of Applied Informatics
Department of Applied Informatics
Department of Applied Informatics
Department of Applied Informatics
Department of Applied Informatics
Department of Applied Informatics
Appears in Collections:Articles

Files in This Item:
File Description SizeFormat
Code beauty.pdf4,26 MBAdobe PDF
View/Open
Show full item record

SCOPUSTM   
Citations

2
checked on Feb 10, 2026

Page view(s)

1,820
checked on Feb 12, 2026

Download(s)

24
checked on Feb 12, 2026

Google ScholarTM

Check

Altmetric

Altmetric


This item is licensed under a Creative Commons License Creative Commons