Abstract
Indentation is an old technique that emphasizes elements in source code using white spaces or tabs. But while this technique has been taught and applied for decades, evidence for its effectiveness is weak: up to 2022 relatively few experiments can be found – the present authors are only aware of one single experiment that revealed an effect of indentation and reported the effect size, but even in that experiment the effect of indentation was found to be weak. The situation changed recently, where an experiment was published that suddenly revealed a strong and large effect of indentation in control flows on reaction time. However, although the experiment provided an initial indication of a possible cause for the difference between indented and non-indented code (the length of the code that can be skipped in indented code), the evidence for this indicator was rather weak. The present paper presents a formal model on the differences in reading times (measured in terms of reaction times) between indented and non-indented code. Based on that model a controlled experiment on generated tasks was designed and executed on 27 participants (undergraduate students, PhD students, professionals). The experiment (again) confirms a strong (p
Author supplied keywords
Cite
CITATION STYLE
Hanenberg, S., Morzeck, J., & Gruhn, V. (2024). Indentation and reading time: a randomized control trial on the differences between generated indented and non-indented if-statements. Empirical Software Engineering, 29(5). https://doi.org/10.1007/s10664-024-10531-y
Register to see more suggestions
Mendeley helps you to discover research relevant for your work.