arrow
返回

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
delete原文链接
delete分享
delete收藏
摘要

摘要

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.
Keyword:
Code readability
Software evolution
Mining software repositories
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

err分享
err收藏
How do annotations affect Java code readability?注释如何影响Java代码的可读性?
err2024-05-03
err0
PREAI
errGuerra, Eduardo; Gomes, Everaldo; Ferreira, Jeferson; Wiese, Igor; Lima, Phyllipe; Gerosa, Marco; Meirelles, Paulo
err分享
err收藏
How changes affect software entropy: an empirical study变化如何影响软件熵: 一项实证研究
err2012-07-14
err49
PREAI
errCanfora, Gerardo; Cerulo, Luigi; Cimitile, Marta; Di Penta, Massimiliano
err分享
err收藏
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.
err分享
err收藏
Software provenance tracking at the scale of public source code
err2020-05-29
err17
errOAAI
errRousseau, Guillaume; Di Cosmo, Roberto; Zacchiroli, Stefano
err分享
err收藏
err分享
err收藏

期刊

Empirical Software Engineering 封面图
Empirical Software Engineering
IF:
3.6
论文数:
2.0K
被引数:
6.4K

机构

E
Eindhoven University of Technology
学者数:
1.1K
论文数: 415
被引数: 1.4W
U
University of Molise
学者数:
142
论文数: 65
被引数: 1.3K
引用论文

引用论文

Chemical Vapour Deposition of Metastable Ni3N
err2009-09-25
err0
PREAI
errErik Lindahl; Mikael Ottosson; Jan-Otto Carlsson
err分享
err收藏
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
err分享
err收藏
An in-depth study of the promises and perils of mining GitHub深入研究采矿GitHub的承诺和危险
err2015-09-05
err175
PREAI
errKalliamvakou, Eirini; Gousios, Georgios; Blincoe, Kelly; Singer, Leif; German, Daniel M.; Damian, Daniela
err分享
err收藏
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
err分享
err收藏
MODALITIES OF SEIZURE ONSET IN TEMPORAL LOBE EPILEPSY
err1996-09-01
err0
PREAI
errF. Arruda; L. F. Quesney; R. Wennberg; A. Olivier
err分享
err收藏
学者 查看更多内容