14.3    Object-Oriented Design

prev

next
Object-oriented (OO) "design" and technology have been heralded as a solution to the problems of software engineering. The claims are that OO technology promotes understandability, extensibility, evolvability, reusability, and maintainability of systems, and that OO systems are easy to understand and use.
However, this technology has not been as successful as expected. Object-oriented methodologies have been shown that the approach to be necessary but not sufficient [??Fischer, 1993 #1961??]. An analysis of experiences and empirical studies reveals that the problem is not the technology per se, but rather that support the technology provides for software developers in performing the processes the technology requires is not at the right level. This section examines issues of the OO approach from two of its prominent characteristics: understandability and reusability.
Understandability. In OO design, software developers can start by defining abstract objects [??Liskov, 1974 #63??] that represent an application domain and gradually refine these objects as they gain the understanding of the problem [Cox, 1986]. With procedural or functional programming languages, software designers have to know how and what to implement with clearly defined functionality, which must be transformed from representations of an application domain to representations of the programming concepts. With object-oriented programming languages, the functionality can emerge through iterative refinement of objects as partially defined objects are evaluated and verified.
Despite these promises, empirical evidence shows that software designers cannot identify what abstractions are relevant to the problem and where or to what extent they should be generalized or specialized [Fischer et al., 1993a]. For example, a case study reported [??Seamail, 1992 #64??] in using the Smalltalk environment [Goldberg & Robson, 1983] showed that although the environment provides a large class library for designers, only a small fraction of the library was used. In the study, when subjects designed a complex heating system, they defined a class "switch" and defined associated methods, whereas the library had a class called "binary-state" that provided exactly the same functionality as the class that they defined. Designers do not know what to look for and do not know the existence of relevant objects, and therefore, they are not motivated to look for them.
Understandability, seemingly attainable by the use of object-oriented technologies, cannot be obtained through generic object-oriented programming environments. Existing object-oriented CASE (Computer-Aided Software Engineering) tools that support "object-oriented design" methodology provide only domain-independent "construction kits" (see Section ????). A great deal of effort is still required for software developers to map their own problem domain concepts to representations of generic programming terms.
Reusability. Another aspect of object-oriented programming is in its high reusability [Meyer, 1987]. Complex systems will evolve much more rapidly from simple systems if there are stable intermediate forms [Simon, 1996]. Object-orientation helps software developers analyze, design, and implement software not by building objects from scratch but by reusing objects from class libraries as "stable intermediate forms." Dominant "reuse" strategies used by object-oriented programmers are to reuse by inheritance and to reuse by copying source code from a sibling class as a template [Lange & Moher, 1989].
Despite the promise of reuse in object-oriented development, however, systematic reuse on a large scale is not being realized [??Krueger, 1992??]. Part of the problem is that the existence of reusable components of object-oriented programming libraries does not guarantee the use of that functionality; it suffers from the problem of information overload we discussed in Chapter ??? and also in Section ???. The space of a class library can be very large and complex, and deep understanding of the library is required to make full use of the existing objects. The Smalltalk environment, for example, once contains 670 classes and more than 6000 methods in its class library; and yet, current object-oriented programming languages provide only simple tools such as Smalltalk's Class Hierarchy Browser [Goldberg & Robson, 1983] for locating reusable classes and methods. Empirical studies [Draper, 1984; Fischer, 1987c; Nielsen & Richards, 1989] have shown that developers do not exploit the power of such high functionality applications.
While reuse has been regarded as one of most important aspects of software engineering, the actual reuse and reuse practice have not been exercised well even in the OO framework. The following section discusses more on this topic.
 

prev

next