Reliability and maintainability related software coupling metrics in C++ programs
Authors:
- 2 January 2003
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 303-311
Abstract
A description is given of some difficulties that one encounters in the testing and maintenance of C++ programs, which may result in program unreliability. Inheritance and polymorphism are key concepts in object-oriented programming (OOP), and are essential for achieving reusability and extendibility, but they also make programs more difficult to understand. The authors show by arguments and by some empirical evidence that widely used complexity metrics like lines of code, cyclomatic complexity, and Software Science's metrics may not be appropriate to measure the complexity of C++ programs and those written in other object-oriented languages, since they do not address concepts like inheritance and encapsulation, apart from having other weaknesses. Some measures using a notion from the world of functional decomposition-coupling, are defined for C++ programs. Two of them-CC and AMC-and equivalent ones for the three widely used complexity metrics (for comparison) are computed for five C++ programs. Preliminary results show that the coupling measures correlate better with difficulty of testing and maintenance than the three widely used complexity metrics.<>Keywords
This publication has 16 references indexed in Scilit:
- Support for maintaining object-oriented programs2002
- A study of the impact of C++ on software maintenance2002
- Polymorphism considered harmfulACM SIGPLAN Notices, 1992
- Towards a metrics suite for object oriented design1991
- Deriving structurally based software measuresJournal of Systems and Software, 1990
- Assuring good style for object-oriented programsIEEE Software, 1989
- Object-oriented developmentIEEE Transactions on Software Engineering, 1986
- The Unix System and Software ReusabilityIEEE Transactions on Software Engineering, 1984
- Research on Structured Programming: An Empiricist's EvaluationIEEE Transactions on Software Engineering, 1984
- A Complexity MeasureIEEE Transactions on Software Engineering, 1976