An evaluation of code metrics for object-oriented programs

被引:8
作者
Harrison, R
Samaraweera, LG
Dobie, MR
Lewis, PH
机构
[1] Dept. of Electronics and Comp. Sci., University of Southampton
关键词
quantifying quality; object-oriented languages; internal attributes;
D O I
10.1016/0950-5849(95)01081-5
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
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.
引用
收藏
页码:443 / 450
页数:8
相关论文
共 22 条
[1]  
[Anonymous], 1956, Nonparametric statistics for the behavioral sciences
[2]  
CHIDAMBER SR, 1994, IEEE T SOFTWARE ENG, P467
[3]  
CHIDAMBER SR, 1993, WORKSH PROC METR OBJ
[4]  
Fenton Norman E., 1991, SOFTWARE METRICS RIG
[5]   QUANTIFYING INTERNAL ATTRIBUTES OF FUNCTIONAL PROGRAMS [J].
HARRISON, R .
INFORMATION AND SOFTWARE TECHNOLOGY, 1993, 35 (10) :554-560
[6]  
HARRISON R, 1994, UNPUB COMP PROGRAMMI
[7]  
HARRISON R, 1995, INF SOFT TECHNOL, P701
[8]  
HOAGLIN D. C., 1983, UNDERSTANDING EXPLOR
[9]  
Jacobson I., 1992, Object Oriented Software Engineering
[10]   AN EVALUATION OF SOME DESIGN METRICS [J].
KITCHENHAM, BA ;
PICKARD, LM ;
LINKMAN, SJ .
SOFTWARE ENGINEERING JOURNAL, 1990, 5 (01) :50-58