Program indentation and comprehensibility
- 1 November 1983
- journal article
- Published by Association for Computing Machinery (ACM) in Communications of the ACM
- Vol. 26 (11) , 861-867
- https://doi.org/10.1145/182.358437
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 passible 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 highest mean score for program comprehension.) We recommend that a moderate level of indentation be used to increase program comprehension and user satisfaction.Keywords
This publication has 14 references indexed in Scilit:
- Indentation, documentation and programmer comprehensionPublished by Association for Computing Machinery (ACM) ,1982
- ContourACM SIGPLAN Notices, 1980
- Indenting for the compilerACM SIGPLAN Notices, 1980
- Some practical experiences formatting Pascal programsACM SIGPLAN Notices, 1979
- Structured formatting of Pascal programsACM SIGPLAN Notices, 1978
- A technique for making structured programs more readableACM SIGPLAN Notices, 1978
- "Flowblocks"ACM SIGPLAN Notices, 1978
- An automatic formatting program for PASCALACM SIGPLAN Notices, 1977
- An experimental investigation of the effect of program structure on program understandingPublished by Association for Computing Machinery (ACM) ,1977
- NEATER2Communications of the ACM, 1970