Indentation: A Simple Matter of Style or Support for Program Comprehension?
dc.contributor.author | Bauer, Jennifer | |
dc.contributor.author | Hofmeister, Johannes C. | |
dc.contributor.author | Siegmund, Janet | |
dc.contributor.author | Apel, Sven | |
dc.date.accessioned | 2023-03-02T10:37:10Z | |
dc.date.available | 2023-03-02T10:37:10Z | |
dc.date.issued | 2018 | |
dc.description.abstract | Most modern programming language style guides suggest a specific indentation depth to convey the structure of code (e.g., two or four spaces). In this study, we examine the effect of indentation depth on program comprehension, to provide justification for suggested levels of indentation made by modern style guides. In the course of our study, we asked 22 participants to evaluate the output of Java code snippets with different levels of indentation. We also measured correctness and speed of the responses, and asked participants to rate the difficulty of the code presented. We employed an eye tracker to gain additional insights into the influence of indentation on visual effort. We found a small effect of indentation depth on fixation duration, but could not detect differences in correctness or visual effort. Our findings suggest that indentations affect program comprehension at a lower, perceptual level of processing, rather than higher level reasoning. Our research design and methods with respect to visual effort could be a promising starting point for future studies in this field. | en |
dc.identifier.pissn | 0720-8928 | |
dc.identifier.uri | https://dl.gi.de/handle/20.500.12116/40558 | |
dc.language.iso | en | |
dc.publisher | Geselllschaft für Informatik e.V. | |
dc.relation.ispartof | Softwaretechnik-Trends Band 38, Heft 2 | |
dc.title | Indentation: A Simple Matter of Style or Support for Program Comprehension? | en |
dc.type | Text/Journal Article | |
gi.citation.endPage | 44 | |
gi.citation.publisherPlace | Bonn | |
gi.citation.startPage | 43 | |
gi.conference.sessiontitle | FG SRE: 20. Workshop Software-Reengineering und -Evolution der GI-Fachgruppe Software-Reengineering (SRE) und 9. Workshop "Design for Future" des GI-Arbeitskreises "Langlebige Softwaresysteme" (L2S2), Bad-Honnef 02. -- 04. Mai 2018S |
Dateien
Originalbündel
1 - 1 von 1
Lade...
- Name:
- 23_WSRE2018_paper_19.pdf
- Größe:
- 42.36 KB
- Format:
- Adobe Portable Document Format