z-logo
open-access-imgOpen Access
Readability and Understandability Scores for Snippet Assessment: an Exploratory Study
Author(s) -
Carlos Eduardo C. Dantas,
Marcelo de Almeida Maia
Publication year - 2021
Language(s) - English
Resource type - Conference proceedings
DOI - 10.5753/vem.2021.17217
Subject(s) - snippet , readability , computer science , program comprehension , comprehension , feature (linguistics) , syntax , code (set theory) , information retrieval , source code , semantics (computer science) , natural language processing , artificial intelligence , software , programming language , linguistics , philosophy , set (abstract data type) , software system
Code search engines usually use readability feature to rank code snippets. There are several metrics to calculate this feature, but developers may have different perceptions about readability. Correlation between readability and understandability features has already been proposed, i.e., developers need to read and comprehend the code snippet syntax, but also understand the semantics. This work investigate scores for understandability and readability features, under the perspective of the possible subjective perception of code snippet comprehension. We find that code snippets with higher readability score has better comprehension than lower ones. The understandability score presents better comprehension in specific situations, e.g. nested loops or if-else chains. The developers also mentioned writability aspects as the principal characteristic to evaluate code snippets comprehension. These results provide insights for future works in code comprehension score optimization.

The content you want is available to Zendy users.

Already have an account? Click here to sign in.
Having issues? You can contact us here