Title :
An empirical comparison of modularity of procedural and object-oriented software
Author :
Ferrett, Lisa K. ; Offutt, Jeff
Author_Institution :
AT&T Gov. Solutions Inc., Vienna, VA, USA
Abstract :
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.
Keywords :
high level languages; object-oriented languages; object-oriented programming; software metrics; software reusability; C language; C++ language; Fortran; Java; experiment; object-oriented languages; object-oriented software; open source software; procedural languages; procedural software; software metrics; software modularity; Algorithms; Application software; Computer industry; Data structures; Government; Industrial relations; Java; Object oriented programming; Programming profession; Software engineering;
Conference_Titel :
Engineering of Complex Computer Systems, 2002. Proceedings. Eighth IEEE International Conference on
Conference_Location :
Greenbelt, MD, USA
Print_ISBN :
0-7695-1757-9
DOI :
10.1109/ICECCS.2002.1181510