2016 · 104 citations · 37 references
ComputingComputer ScienceFeature EngineeringNatural Language ProcessingSoftware EngineeringSoftware MetricsText Feature EngineeringAccuracyCode ComprehensionCode ReadabilityProgram ComprehensionReadabilityReadability FeaturesSoftware Maintenance ProcessSource Code Metrics
Code reading is one of the most frequent activities in software maintenance; before implementing changes, it is necessary to fully understand source code often written by other developers. Thus, readability is a crucial aspect of source code that may significantly influence program comprehension effort. In general, models used to estimate software readability take into account only structural aspects of source code, e.g., line length and a number of comments. However, source code is a particular form of text; therefore, a code readability model should not ignore the textual aspects of source code encapsulated in identifiers and comments. In this paper, we propose a set of textual features aimed at measuring code readability. We evaluated the proposed textual features on 600 code snippets manually evaluated (in terms of readability) by 5K+ people. The results demonstrate that the proposed features complement classic structural features when predicting code readability judgments. Consequently, a code readability model based on a richer set of features, including the ones proposed in this paper, achieves a significantly higher accuracy as compared to all of the state-of-the-art readability models.
37
A Simple Sequentially Rejective Multiple Test Procedure
Sture Holm · Scandinavian Journal of Statistics · 1979 · 21.8K citations
George A. Miller · Communications of the ACM · 1995 · 14.1K citations · Full text
Rudolph Flesch · Journal of Applied Psychology · 1948 · 5.2K citations
The earth is round (p < .05).
Jacob Cohen · American Psychologist · 1994 · 3.9K citations