arrow
Return

How does code readability change during software evolution?

delete2020-09-24
delete16
PRE
AI
V
Valentina Piantadosi
F
Fabiana Fierro
S
Simone Scalabrino
A
Alexander Serebrenik
R
Rocco Oliveto *
DOI:10.1007/s10664-020-09886-9delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
Code reading is one of the most frequent activities in software maintenance. Such an activity aims at acquiring information from the code and, thus, it is a prerequisite for program comprehension: developers need to read the source code they are going to modify before implementing changes. As the code changes, so does its readability; however, it is not clear yethowcode readability changes during software evolution. To understand how code readability changes when software evolves, we studied the history of 25 open source systems. We modeled code readability evolution by defining four states in which a file can be at a certain point of time (non-existing,other-name,readable, andunreadable). We used the data gathered to infer the probability of transitioning from one state to another one. In addition, we also manually checked a significant sample of transitions to compute the performance of the state-of-the-art readability prediction model we used to calculate the transition probabilities. With this manual analysis, we found that the tool correctly classifies all the transitions in the majority of the cases, even if there is a loss of accuracy compared to the single-version readability estimation. Our results show that most of the source code files are created readable. Moreover, we observed that only a minority of the commits change the readability state. Finally, we manually carried out qualitative analysis to understand what makes code unreadable and what developers do to prevent this. Using our results we propose some guidelines (i) to reduce the risk of code readability erosion and (ii) to promote best practices that make code readable.
Keywords:
Code readability
Software evolution
Mining software repositories
Software evolution: the lifetime of fine-grained elements
err2021-02-09
err1
errOAAI
errSpinellis, Diomidis; Louridas, Panos; Kechagia, Maria
errShare
errSave
How do annotations affect Java code readability?
err2024-05-03
err0
PREAI
errGuerra, Eduardo; Gomes, Everaldo; Ferreira, Jeferson; Wiese, Igor; Lima, Phyllipe; Gerosa, Marco; Meirelles, Paulo
errShare
errSave
How changes affect software entropy: an empirical study
err2012-07-14
err49
PREAI
errCanfora, Gerardo; Cerulo, Luigi; Cimitile, Marta; Di Penta, Massimiliano
errShare
errSave
Macro-level software evolution: a case study of a large software compilation
err2008-11-29
err59
errOAAI
errGonzalez-Barahona, Jesus M.; Robles, Gregorio; Michlmayr, Martin; Jose Amor, Juan; German, Daniel M.
errShare
errSave
Revisiting the Identification of the Co-evolution of Production and Test Code
err2023-09-30
err1
errOAAI
errSun, Weifeng; Yan, Meng; Liu, Zhongxin; Xia, Xin; Lei, Yan; Lo, David
errShare
errSave
Software provenance tracking at the scale of public source code
err2020-05-29
err17
errOAAI
errRousseau, Guillaume; Di Cosmo, Roberto; Zacchiroli, Stefano
errShare
errSave
Software Metric Based Impact Analysis of Code Smells - A Large Scale Empirical Study
err2025-01-13
err0
PREAI
errRahman, Md. Masudur; Satter, Abdus; Joarder, Md. Mahbubul Alam; Sakib, Kazi
errShare
errSave

Journal

Empirical Software Engineering cover
Empirical Software Engineering
IF:
3.6
Papers:
2.0K
Citations:
6.4K

Organization

E
Eindhoven University of Technology
Scholars:
1.1K
Papers: 415
Citations: 1.4W
U
University of Molise
Scholars:
142
Papers: 65
Citations: 1.3K
Cited Papers

Cited Papers

Chemical Vapour Deposition of Metastable Ni3N
err2009-09-25
err0
PREAI
errErik Lindahl; Mikael Ottosson; Jan-Otto Carlsson
errShare
errSave
The Daidzein Metabolite, 6,7,4'-Trihydroxyisoflavone, Is a Novel Inhibitor of PKCα in Suppressing Solar UV-Induced Matrix Metalloproteinase 1
err2014-11-19
err0
errOAAI
errTae-Gyu Lim; Jong-Eun Kim; Sung-Young Lee; Jun Park; Myung Yeom; Hanyong Chen; Ann Bode; Zigang Dong; Ki Lee
errShare
errSave
An in-depth study of the promises and perils of mining GitHub
err2015-09-05
err175
PREAI
errKalliamvakou, Eirini; Gousios, Georgios; Blincoe, Kelly; Singer, Leif; German, Daniel M.; Damian, Daniela
errShare
errSave
errShare
errSave
Performance Analysis of Variable Mode Adsorption Chiller at Different Recooling Water Temperatures
err2021-06-27
err0
errOAAI
errAhmad A. Alsarayreh; Ayman Al-Maaitah; Menwer Attarakih; Hans-Jörg Bart
errShare
errSave
MODALITIES OF SEIZURE ONSET IN TEMPORAL LOBE EPILEPSY
err1996-09-01
err0
PREAI
errF. Arruda; L. F. Quesney; R. Wennberg; A. Olivier
errShare
errSave
errShare
errSave
researcher View more