1983
DOI: 10.1145/182.358437
|View full text |Cite
|
Sign up to set email alerts
|

Program indentation and comprehensibility

Abstract: The consensus in the programming community is that indentation aids program comprehension, although many studies do not back this up. We tested program comprehension on a Pascal program. Two styles of indentation were used-blocked and nonblocked-in addition to four possible levels of indentation (0, 2, 4, 6 spaces). Both experienced and novice subjects were used. Although the blocking style made no difference, the level of identation had a significant effect on program comprehension. (2~4 spaces had the highes… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
2

Citation Types

2
51
0
2

Year Published

1989
1989
2023
2023

Publication Types

Select...
5
4
1

Relationship

0
10

Authors

Journals

citations
Cited by 125 publications
(55 citation statements)
references
References 16 publications
2
51
0
2
Order By: Relevance
“…Languages might be designed to force or encourage improved readability by considering the implications of various design and language features on this metric. For example, Python enforces a specific indentation scheme in order to aid comprehension [43,32]. In our experiments, the importance of character count per line suggests that languages should favor the use of constructs, such as switch statements and pre-and post-increment, that encourage short lines.…”
Section: Discussionmentioning
confidence: 99%
“…Languages might be designed to force or encourage improved readability by considering the implications of various design and language features on this metric. For example, Python enforces a specific indentation scheme in order to aid comprehension [43,32]. In our experiments, the importance of character count per line suggests that languages should favor the use of constructs, such as switch statements and pre-and post-increment, that encourage short lines.…”
Section: Discussionmentioning
confidence: 99%
“…For example, an expression such as a+x * y may easily confuse a casual reader as to the operator precedence, compared to a + x*y or even the neutrally spaced a + x * y (assuming normal operator priorities). -Indentation has long been considered important to visual recognition of scope and nesting structures in program text [12]. This insight goes back at least to the 1960s [11].…”
Section: Introductionmentioning
confidence: 99%
“…The layout and style of program source code are crucial for the time required to understand and thus modify it [16]. In fact, these aspects are too integral to the coding aspect to be changed effectively later [15, p399].…”
Section: Introductionmentioning
confidence: 99%