Attributes Influencing the Reading and Comprehension of Source Code – Discussing Contradictory Evidence

Background: Coding guidelines can be contradictory despite their intention of providing a universal perspective on source code quality. For instance, five attributes (code size, semantic complexity, internal documentation, layout style, and identifier length) out of 13 presented contradictions regar...

Full description

Bibliographic Details
Main Authors: Talita Vieira Ribeiro, Guilherme Horta Travassos
Format: Article
Language:English
Published: Centro Latinoamericano de Estudios en Informática 2018-04-01
Series:CLEI Electronic Journal
Online Access:http://www.clei.org/cleiej-beta/index.php/cleiej/article/view/82
id doaj-cf4123a535b14f53a348049e40dbd376
record_format Article
spelling doaj-cf4123a535b14f53a348049e40dbd3762020-11-25T02:11:49ZengCentro Latinoamericano de Estudios en InformáticaCLEI Electronic Journal0717-50002018-04-012115:15:3310.19153/cleiej.21.1.582Attributes Influencing the Reading and Comprehension of Source Code – Discussing Contradictory EvidenceTalita Vieira Ribeiro0Guilherme Horta Travassos1Federal University of Rio de JaneiroFederal University of Rio de JaneiroBackground: Coding guidelines can be contradictory despite their intention of providing a universal perspective on source code quality. For instance, five attributes (code size, semantic complexity, internal documentation, layout style, and identifier length) out of 13 presented contradictions regarding their influence (positive or negative) on the source code readability and comprehensibility. Aims: To investigate source code attributes and their influence on readability and comprehensibility. Method: A literature review was used to identify source code attributes impacting the source code reading and comprehension, and an empirical study was performed to support the assessment of four attributes that presented empirical contradictions in the technical literature. Results: Regardless participants’ experience; all participants showed more positive comprehensibility perceptions for Python snippets with more lines of code. However, their readability perceptions regarding code size were contradictory. The less experienced participants preferred more lines of code while the more experienced ones preferred fewer lines of code. Long and complete-word identifiers presented better readability and comprehensibility according to both novices and experts. Comments contribute to better comprehension. Furthermore, four indentation spaces dominated the code reading preference. Conclusions: Coding guidelines contradictions still demand further investigation to provide indications on possible confounding factors explaining some of the inconclusive results.http://www.clei.org/cleiej-beta/index.php/cleiej/article/view/82
collection DOAJ
language English
format Article
sources DOAJ
author Talita Vieira Ribeiro
Guilherme Horta Travassos
spellingShingle Talita Vieira Ribeiro
Guilherme Horta Travassos
Attributes Influencing the Reading and Comprehension of Source Code – Discussing Contradictory Evidence
CLEI Electronic Journal
author_facet Talita Vieira Ribeiro
Guilherme Horta Travassos
author_sort Talita Vieira Ribeiro
title Attributes Influencing the Reading and Comprehension of Source Code – Discussing Contradictory Evidence
title_short Attributes Influencing the Reading and Comprehension of Source Code – Discussing Contradictory Evidence
title_full Attributes Influencing the Reading and Comprehension of Source Code – Discussing Contradictory Evidence
title_fullStr Attributes Influencing the Reading and Comprehension of Source Code – Discussing Contradictory Evidence
title_full_unstemmed Attributes Influencing the Reading and Comprehension of Source Code – Discussing Contradictory Evidence
title_sort attributes influencing the reading and comprehension of source code – discussing contradictory evidence
publisher Centro Latinoamericano de Estudios en Informática
series CLEI Electronic Journal
issn 0717-5000
publishDate 2018-04-01
description Background: Coding guidelines can be contradictory despite their intention of providing a universal perspective on source code quality. For instance, five attributes (code size, semantic complexity, internal documentation, layout style, and identifier length) out of 13 presented contradictions regarding their influence (positive or negative) on the source code readability and comprehensibility. Aims: To investigate source code attributes and their influence on readability and comprehensibility. Method: A literature review was used to identify source code attributes impacting the source code reading and comprehension, and an empirical study was performed to support the assessment of four attributes that presented empirical contradictions in the technical literature. Results: Regardless participants’ experience; all participants showed more positive comprehensibility perceptions for Python snippets with more lines of code. However, their readability perceptions regarding code size were contradictory. The less experienced participants preferred more lines of code while the more experienced ones preferred fewer lines of code. Long and complete-word identifiers presented better readability and comprehensibility according to both novices and experts. Comments contribute to better comprehension. Furthermore, four indentation spaces dominated the code reading preference. Conclusions: Coding guidelines contradictions still demand further investigation to provide indications on possible confounding factors explaining some of the inconclusive results.
url http://www.clei.org/cleiej-beta/index.php/cleiej/article/view/82
work_keys_str_mv AT talitavieiraribeiro attributesinfluencingthereadingandcomprehensionofsourcecodediscussingcontradictoryevidence
AT guilhermehortatravassos attributesinfluencingthereadingandcomprehensionofsourcecodediscussingcontradictoryevidence
_version_ 1724912305896947712