The effects of comments and identifier names on program comprehensibility: An experimental investigation

被引:0
|
作者
Takang, AA [1 ]
Grubb, PA [1 ]
Macredie, RD [1 ]
机构
[1] BRUNEL UNIV,ST JOHNS,DEPT COMP SCI & INFORMAT SYST,UXBRIDGE UB8 3PH,MIDDX,ENGLAND
来源
JOURNAL OF PROGRAMMING LANGUAGES | 1996年 / 4卷 / 03期
关键词
comments; experimentation; identifier names; program comprehensibility; software maintenance;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The effects of comments and identifier names on program comprehension are examined. A number of studies have been undertaken to investigate the independent impact of comments or identifier names on comprehension but here the combined effect of comments and identifier names on program comprehension are also considered using controlled experimentation Based on existing program comprehension theories, three hypotheses were formulated: (i) commented programs are more understandable than non-commented programs; (ii) programs that contain 'full' identifier names are more understandable than those with abbreviated identifier names; and (iii) the combined effect of comments and identifier names tend to enhance the understandability of a program more than the independent effect of comments or identifier names. Eighty-nine undergraduate computer science students, divided into four groups, were presented with four different versions of a Modula-2 program and two methods were used to measure each participant's level of understanding of the program - an objective multiple-choice test and a subjective scoring procedure. A two-way analysis of variance of the results revealed that only hypothesis (i) was supported in the light of the objective test scores but only hypothesis (ii) was supported when the subjective scores were analysed. The discrepancy in these findings raises questions about the reliability of using just a single method to measure program comprehension and the use of statistical analysis on program comprehension data. Problems inherent in experiments such as those reported in this study are raised, and warnings against a simple reliance on their findings are given.
引用
收藏
页码:143 / 167
页数:25
相关论文
共 2 条
  • [1] An experimental investigation of the impact of individual, program, and organizational characteristics on software maintenance effort
    Ramanujan, S
    Scamell, RW
    Shah, JR
    JOURNAL OF SYSTEMS AND SOFTWARE, 2000, 54 (02) : 137 - 157
  • [2] Experimental investigation of effects of build parameters on flexural properties in fused deposition modelling parts
    Motaparti, Krishna P.
    Taylor, Gregory
    Leu, Ming C.
    Chandrashekhara, K.
    Castle, James
    Matlack, Mike
    VIRTUAL AND PHYSICAL PROTOTYPING, 2017, 12 (03) : 207 - 220