A commonly held belief is that applications written in object-oriented languages are more modular than those written in procedural languages. This paper presents results from an experiment that examines this hypothesis. Open source and industrial program modules written in the procedural languages of Fortran and C were compared with open source program modules written in the object-oriented languages of C++ and Java. The metrics examined in this study were lines of code per module and number of parameters per module. The results of the investigation support the hypothesis. The modules of the object-oriented programs were found to be half the size of those of the procedural programs and the average number of parameters per module for the object-oriented programs was approximately half that of the procedural programs. Thus the object-oriented programs were twice as modular as the procedural programs. An unexpected result was that the C++ programs were found to be no more modular than the C programs.
[1]
A. Jefferson Offutt,et al.
A software metric system for module coupling
,
1993,
J. Syst. Softw..
[2]
Martin Shepperd,et al.
Foundations of software measurement
,
1995
.
[3]
Brian Henderson-Sellers,et al.
A Book Of Object-Oriented Knowledge
,
1992
.
[4]
Glenford J. Myers,et al.
Structured Design
,
1999,
IBM Syst. J..
[5]
William E. Lorensen,et al.
Object-Oriented Modeling and Design
,
1991,
TOOLS.
[6]
Norman E. Fenton,et al.
Software Metrics: A Rigorous Approach
,
1991
.
[7]
Mark Lorenz.
Object-Oriented Software Metrics
,
1994
.
[8]
J. K. Hughes,et al.
Book Reviews : A structured approach to programming
,
1978
.
[9]
Grady Booch,et al.
Object-Oriented Design with Applications
,
1990
.