Abstract
This paper describes an experimentally based methodology for investigating how the readability and modifiability of computer programs can be expressed in terms of programming style.
As one part of the methodology three different measures of the readability and modifiability of a program are established. The measures are obtained by human gradings or scores. As another part these measures are related to computer-evaluable programming style characteristics. The result is a formula yielding the readability and modifiability as a function of measurable program characteristics.
In testing the methodology one experiment provided a formula of readability containing six computer-evaluable programming style characteristics. A further experiment indicated that the general validity of this formula of program readability needs further investigation.
Similar content being viewed by others
References
I. Andersen, I. Carstensen, H. Friis, L. Fischer, A. H. Jørgensen:PLIX — programlœsbarhedsindex. Rapport 75/1, (1975), Datalogisk Institut, Københavns Universitet.
C. H. Björnsson:Lœsbarhed. Gad, København (1971).
B. W. Boehm, J. R. Brown, H. Kaspar, M. Lipow, G. J. MacLeod, M. J. Merritt:Characteristics of software quality. TRW Systems Group, One Space Park, Redondo Beach, California (1973).
B. W. Boehm:Software and its impacts: A quantitative assessment. Datamation, vol. 19, no. 5, (1973) pp. 48–59.
B. Curtis, S. B. Sheppard, P. Milliman, M. A. Borst, T. Love:Measuring the psychological complexity of software maintenance tasks with the Halstead and McCabe metrics. IEEE Trans. on Software Engineering, vol. SE-5, no. 2, (1979) pp. 96–104.
A. Fitzsimmons and T. Love:A review and evaluation of software science. Computing Surveys, vol. 10, no. 1 (1978), pp. 3–18.
M. H. Halstead:Advances in software science. Advances in Computers, vol. 18, (1979) pp. 119–172. Academic Press, New York.
B. W. Kernighan and P. J. Plauger:The Elements of Programming Style. McGraw-Hill, New York (1974).
Klare:Measurement of Readability. Iowa University Press (1963).
D. E. Knuth:The Art of Computer Programming, vol. 1. Addison-Wesley, New York (1973).
D. D. McCracken and G. M. Weinberg:How to write a readable FORTRAN program. Datamation, vol. 18, no. 10 (1972), pp. 73–77.
K. V. Roberts:The readability of computer programs. Computer Bulletin, vol. 10, no. 4 (1967), pp. 17–24.
L. Weissman:A methodology for studying the psychological complexity of computer programs. Technical Report CSRG-37, University of Toronto (1974).
M. V. Zelkowitz:Perspectives on software engineering. Computing Surveys, vol. 10, no. 2 (1978), pp. 197–216.
J. L. Elshoff:An analysis of some commercial PL/I programs. IEEE. Trans. on Software Engineering, vol. SE-2, no. 2, (1976) pp. 113–120.
Author information
Authors and Affiliations
Rights and permissions
About this article
Cite this article
Jørgensen, A.H. A methodology for measuring the readability and modifiability of computer programs. BIT 20, 393–405 (1980). https://doi.org/10.1007/BF01933633
Received:
Revised:
Issue Date:
DOI: https://doi.org/10.1007/BF01933633