loading
Papers Papers/2022 Papers Papers/2022

Research.Publish.Connect.

Paper

Authors: Johannes Morzeck 1 ; Stefan Hanenberg 2 ; Ole Werger 2 and Volker Gruhn 2

Affiliations: 1 Independent Researcher, Germany ; 2 University of Duisburg–Essen, Essen, Germany

Keyword(s): Programming, Indentation, Empirical Study, User Study.

Abstract: Indentation is a well-known principle for writing code. It is taught to progammers and applied in software projects. The typical argument for indentation is that it makes code more readable. However, taking a look into the literature reveals that the scientific foundatation for indentation is rather weak. The present work introduces a four factor experiment with focus on indentation in control flows. In the experiment, 20 participants (10 students and 10 professional developers) were asked to determine the results of given Java code consisting of if-statements and printouts. Measured was the time required to answer the question correctly. The experiment reveals that indentation has a strong (p < .001) and large (η 2 p = .832) positive effect on the readability in terms of answering time. On average participants required 179% more time on non-indented code to answer the question (where the different treatment combinations varied on average between 142% and 269%). Additional ly, participants were asked about their subjective impressions on the tasks using the standardized NASA TLX questionnaire (using the categories mental demand, performance, effort, and frustration). It turned out that participants subjectively perceived non–indented code with respect to all categories more negative (p < .001, .4 < η2p < .79). (More)

CC BY-NC-ND 4.0

Sign In Guest: Register as new SciTePress user now for free.

Sign In SciTePress user: please login.

PDF ImageMy Papers

You are not signed in, therefore limits apply to your IP address 216.73.216.157

In the current month:
Recent papers: 100 available of 100 total
2+ years older papers: 200 available of 200 total

Paper citation in several formats:
Morzeck, J., Hanenberg, S., Werger, O., Gruhn and V. (2023). Indentation in Source Code: A Randomized Control Trial on the Readability of Control Flows in Java Code with Large Effects. In Proceedings of the 18th International Conference on Software Technologies - ICSOFT; ISBN 978-989-758-665-1; ISSN 2184-2833, SciTePress, pages 117-128. DOI: 10.5220/0012087500003538

@conference{icsoft23,
author={Johannes Morzeck and Stefan Hanenberg and Ole Werger and Volker Gruhn},
title={Indentation in Source Code: A Randomized Control Trial on the Readability of Control Flows in Java Code with Large Effects},
booktitle={Proceedings of the 18th International Conference on Software Technologies - ICSOFT},
year={2023},
pages={117-128},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0012087500003538},
isbn={978-989-758-665-1},
issn={2184-2833},
}

TY - CONF

JO - Proceedings of the 18th International Conference on Software Technologies - ICSOFT
TI - Indentation in Source Code: A Randomized Control Trial on the Readability of Control Flows in Java Code with Large Effects
SN - 978-989-758-665-1
IS - 2184-2833
AU - Morzeck, J.
AU - Hanenberg, S.
AU - Werger, O.
AU - Gruhn, V.
PY - 2023
SP - 117
EP - 128
DO - 10.5220/0012087500003538
PB - SciTePress