Procedures and comments vs. the banker's algorithm

A 2 × 2 factorial experiment was performed to compare the effects of modularity (using internal procedures) and comments on the readability of the Banker's Algorithm. The readability of 4 editions of the program, each having a different combination of these factors, was inferred from the accuracy with which students could answer questions about the program after reading its text. Results of the experiment suggest that the Banker's Algorithm is more readable with in-line code than with internal procedures, and that the author's comments improve its readability.

[1]  Maurice H. Halstead,et al.  Elements of software science (Operating and programming systems series) , 1977 .

[2]  A. F. Norcio Indentation, documentation and programmer comprehension , 1982, CHI '82.

[3]  Michael Marcotty,et al.  Improving computer program readability to aid modification , 1982, CACM.

[4]  Anas N. Al-Rabadi,et al.  A comparison of modified reconstructability analysis and Ashenhurst‐Curtis decomposition of Boolean functions , 2004 .

[5]  Ben Shneiderman,et al.  Program indentation and comprehensibility , 1983, CACM.

[6]  Anker Helms Jørgensen,et al.  A methodology for measuring the readability and modifiability of computer programs , 1980, BIT.

[7]  Ben Shneiderman,et al.  Experimental investigations of the utility of detailed flowcharts in programming , 1977, CACM.

[8]  Tom Love An experimental investigation of the effect of program structure on program understanding , 1977 .

[9]  Gerald M. Weinberg,et al.  Psychology of computer programming , 1971 .

[10]  Ben Shneiderman,et al.  Experimental Investigations of Computer Program Debugging and Modification , 1976 .

[11]  Bill Curtis,et al.  Measuring the Psychological Complexity of Software Maintenance Tasks with the Halstead and McCabe Metrics , 1979, IEEE Transactions on Software Engineering.

[12]  Brian W. Kernighan,et al.  Elements of Programming Style , 1974 .

[13]  Edsger W. Dijkstra,et al.  Structured programming , 1972, A.P.I.C. Studies in data processing.

[14]  Larry Weissman,et al.  Psychological complexity of computer programs: an experimental methodology , 1974, SIGP.

[15]  Ben Shneiderman,et al.  Software psychology: Human factors in computer and information systems (Winthrop computer systems series) , 1980 .

[16]  Ben Shneiderman,et al.  Control flow and data structure documentation: two experiments , 1982, CACM.

[17]  P. J. Plauger,et al.  Programming style , 1974, SIGCSE '74.

[18]  Laurence Mark Weissman,et al.  A methodology for studying the psychological complexity of computer programs. , 1974 .

[19]  J. C. Domangue,et al.  Predicting the Readability of FORTRAN Programs. , 1982 .