Conference paper Open Access

Readability and Understandability Scores for SnippetAssessment: an Exploratory Study

carlos eduardo C. dantas; Marcelo A. Maia

MARC21 XML Export

<?xml version='1.0' encoding='UTF-8'?>
<record xmlns="">
  <datafield tag="041" ind1=" " ind2=" ">
    <subfield code="a">eng</subfield>
  <datafield tag="653" ind1=" " ind2=" ">
    <subfield code="a">readability, understandability, code snippets, likert, code comprehension</subfield>
  <controlfield tag="005">20210820014823.0</controlfield>
  <controlfield tag="001">5224346</controlfield>
  <datafield tag="700" ind1=" " ind2=" ">
    <subfield code="u">UFU</subfield>
    <subfield code="0">(orcid)0000-0003-3578-1380</subfield>
    <subfield code="a">Marcelo A. Maia</subfield>
  <datafield tag="856" ind1="4" ind2=" ">
    <subfield code="s">83545857</subfield>
    <subfield code="z">md5:a12d4f88a12b41b6b86f46c29cc0e6de</subfield>
    <subfield code="u"></subfield>
  <datafield tag="542" ind1=" " ind2=" ">
    <subfield code="l">open</subfield>
  <datafield tag="260" ind1=" " ind2=" ">
    <subfield code="c">2021-08-19</subfield>
  <datafield tag="909" ind1="C" ind2="O">
    <subfield code="p">openaire</subfield>
    <subfield code="o"></subfield>
  <datafield tag="100" ind1=" " ind2=" ">
    <subfield code="u">UFU</subfield>
    <subfield code="a">carlos eduardo C. dantas</subfield>
  <datafield tag="245" ind1=" " ind2=" ">
    <subfield code="a">Readability and Understandability Scores for SnippetAssessment: an Exploratory Study</subfield>
  <datafield tag="540" ind1=" " ind2=" ">
    <subfield code="u"></subfield>
    <subfield code="a">Creative Commons Attribution 4.0 International</subfield>
  <datafield tag="650" ind1="1" ind2="7">
    <subfield code="a">cc-by</subfield>
    <subfield code="2"></subfield>
  <datafield tag="520" ind1=" " ind2=" ">
    <subfield code="a">&lt;p&gt;Code search engines usually use readability feature to rank code snippets.&amp;nbsp; 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.&lt;/p&gt;</subfield>
  <datafield tag="773" ind1=" " ind2=" ">
    <subfield code="n">url</subfield>
    <subfield code="i">isSupplementTo</subfield>
    <subfield code="a"></subfield>
  <datafield tag="773" ind1=" " ind2=" ">
    <subfield code="n">doi</subfield>
    <subfield code="i">isVersionOf</subfield>
    <subfield code="a">10.5281/zenodo.5224345</subfield>
  <datafield tag="024" ind1=" " ind2=" ">
    <subfield code="a">10.5281/zenodo.5224346</subfield>
    <subfield code="2">doi</subfield>
  <datafield tag="980" ind1=" " ind2=" ">
    <subfield code="a">publication</subfield>
    <subfield code="b">conferencepaper</subfield>
All versions This version
Views 5252
Downloads 11
Data volume 83.5 MB83.5 MB
Unique views 3737
Unique downloads 11


Cite as