An evaluation of code metrics for object-oriented programs

Abstract This paper reports on the preliminary results of an investigation into the quality of programs written using different programming paradigms. In particular, the project aims to provide a quantitative analysis of the object-oriented and functional paradigms. Here, we report on the first stage of the project, the evaluation of a number of suggested indicators to determine whether or not they are correlated with the quality of object-oriented programs. Quality is assumed to be measured by the number of known errors encountered and the number of modification requests made during development, testing and maintenance, the times taken to attend to these and a subjective assessment of program complexity. We found that two of the suggested code metrics (the number of non-comment source lines and the number of function declarations) were strongly correlated with these measures of quality.

[1]  Stuart H. Zweben,et al.  Measuring the quality of structured designs , 1981, J. Syst. Softw..

[2]  Martin Shepperd Design metrics: an empirical analysis , 1990 .

[3]  Elaine J. Weyuker,et al.  Evaluating Software Complexity Measures , 2010, IEEE Trans. Software Eng..

[4]  Sallie M. Henry,et al.  Object-oriented metrics that predict maintainability , 1993, J. Syst. Softw..

[5]  S. Siegel,et al.  Nonparametric Statistics for the Behavioral Sciences , 2022, The SAGE Encyclopedia of Research Design.

[6]  Chris F. Kemerer,et al.  A Metrics Suite for Object Oriented Design , 2015, IEEE Trans. Software Eng..

[7]  Paul H. Lewis,et al.  Comparing programming paradigms: an evaluation of functional and object-oriented programs , 1996, Softw. Eng. J..

[8]  Ivar Jacobson,et al.  Object-oriented software engineering - a use case driven approach , 1993, TOOLS.

[9]  R. Harrison Quantifying internal attributes of functional programs , 1993, Inf. Softw. Technol..

[10]  Ronald E. Prather An Axiomatic Theory of Software Complexity Measure , 1984, Comput. J..

[11]  Mark Lorenz Object-Oriented Software Metrics , 1994 .

[12]  Horst Zuse,et al.  Software metrics: using measurement theory to describe the properties and scales of static software complexity metrics , 1989, SIGP.

[13]  Chris F. Kemerer,et al.  Towards a metrics suite for object oriented design , 2017, OOPSLA '91.

[14]  Darrel C. Ince,et al.  Design metrics and software maintainability: An experimental investigation , 1991, J. Softw. Maintenance Res. Pract..

[15]  Rebecca Wirfs-Brock,et al.  Designing object-oriented software , 1990 .

[16]  Norman E. Fenton,et al.  Software Metrics: A Rigorous Approach , 1991 .

[17]  Paul H. Lewis,et al.  Estimating the quality of functional programs: an empirical investigation , 1995, Inf. Softw. Technol..

[18]  Barbara A. Kitchenham,et al.  An evaluation of some design metrics , 1990, Softw. Eng. J..