Comparing programming paradigms: An evaluation of functional and object-oriented programs

被引:25
|
作者
Harrison, R
Samaraweera, LG
Dobie, MR
Lewis, PH
机构
[1] Department of Electronics and Computer Science, University of Southampton
来源
SOFTWARE ENGINEERING JOURNAL | 1996年 / 11卷 / 04期
关键词
D O I
10.1049/sej.1996.0030
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
A quantitative evaluation of the functional and object-oriented paradigms is presented, The aim of the project is to investigate whether the quality of code produced using a functional language is significantly different from that produced using an object-oriented language, Twelve sets of algorithms are developed, together with a number of utility functions, in both SML and C++. Strict constraints are imposed during the development cycle to improve the reliability of the results, The statistical tests do not reveal any significant differences for direct measures of the development metrics used which are associated with quality, such as the number of known errors, the number of modification requests, a subjective complexity assessment etc, However, significant differences are found for an indirect measure, the number of known errors per thousand non-comment source lines, and for various code metrics, including the number of distinct functions called, the number of distinct library functions called, and the ratio of these, which is a measure of code reuse, A difference is also found for the time taken to test the programs, due to different compilation techniques and a difference in the number of test cases executed.
引用
收藏
页码:247 / 254
页数:8
相关论文
共 50 条
  • [41] Teaching object-oriented programming
    Viswanathan, KV
    [J]. JOURNAL OF OBJECT-ORIENTED PROGRAMMING, 1996, 9 (02): : 8 - &
  • [42] Object-Oriented CEM Programming
    So, Poman
    [J]. IEEE MICROWAVE MAGAZINE, 2008, 9 (06) : 123 - 130
  • [43] OBJECT-ORIENTED PROGRAMMING IN AL
    ALPERT, SR
    WOYAK, SW
    SHROBE, HJ
    ARROWOOD, LF
    [J]. IEEE INTELLIGENT SYSTEMS & THEIR APPLICATIONS, 1990, 5 (06): : 6 - 7
  • [44] OBJECT-ORIENTED DESIGN AND PROGRAMMING
    CASTILLO, CM
    FLANAGAN, EB
    WILKINSON, NM
    [J]. AT&T TECHNICAL JOURNAL, 1992, 71 (06): : 27 - 33
  • [45] Object-oriented programming with induction
    Swen, B
    [J]. ACM SIGPLAN NOTICES, 2000, 35 (02) : 61 - 67
  • [46] OBJECT-ORIENTED PROGRAMMING IN S
    CALAWAY, R
    [J]. DR DOBBS JOURNAL, 1995, 20 (10): : 44 - &
  • [47] OBJECT-ORIENTED PROGRAMMING FOR THE BIOSCIENCES
    WIECHERT, W
    JOKSCH, B
    WITTIG, R
    HARTBRICH, A
    HONER, T
    MOLLNEY, M
    [J]. COMPUTER APPLICATIONS IN THE BIOSCIENCES, 1995, 11 (05): : 517 - 534
  • [48] Temporal object-oriented programming
    [J]. Alagic, Suad, 1600, Oxford Univ Press, Oxford, United Kingdom (43):
  • [49] Teaching object-oriented programming
    Viswanathan, K.V.
    [J]. JOOP - Journal of Object-Oriented Programming, 1996, 9 (02):
  • [50] OBJECT-ORIENTED PROGRAMMING - WHAT FOR
    MOSSENBOCK, H
    [J]. JOURNAL OF MICROCOMPUTER APPLICATIONS, 1991, 14 (03): : 217 - 228