1 Chapter 16 Software Reuse
1 Chapter 16 Software Reuse
Lecture 1
Benefit Explanation
Increased dependability Reused software, which has been tried and tested in
working systems, should be more dependable than
new software. Its design and implementation faults
should have been found and fixed.
Reduced process risk The cost of existing software is already known,
whereas the costs of development are always a matter
of judgment. This is an important factor for project
management because it reduces the margin of error in
project cost estimation. This is particularly true when
relatively large software components such as
subsystems are reused.
Effective use of specialists Instead of doing the same work over and over again,
application specialists can develop reusable software
that encapsulates their knowledge.
Benefit Explanation
Standards compliance Some standards, such as user interface standards, can
be implemented as a set of reusable components. For
example, if menus in a user interface are implemented
using reusable components, all applications present the
same menu formats to users. The use of standard user
interfaces improves dependability because users make
fewer mistakes when presented with a familiar interface.
Accelerated development Bringing a system to market as early as possible is often
more important than overall development costs. Reusing
software can speed up system production because both
development and validation time may be reduced.
Problem Explanation
Increased maintenance If the source code of a reused software system or
costs component is not available then maintenance costs may be
higher because the reused elements of the system may
become increasingly incompatible with system changes.
Lack of tool support Some software tools do not support development with
reuse. It may be difficult or impossible to integrate these
tools with a component library system. The software
process assumed by these tools may not take reuse into
account. This is particularly true for tools that support
embedded systems engineering, less so for object-oriented
development tools.
Not-invented-here Some software engineers prefer to rewrite components
syndrome because they believe they can improve on them. This is
partly to do with trust and partly to do with the fact that
writing original software is seen as more challenging than
reusing other people’s software.
Problem Explanation
Creating, maintaining, Populating a reusable component library and ensuring the
and using a component software developers can use this library can be expensive.
library Development processes have to be adapted to ensure that
the library is used.
Finding, understanding, Software components have to be discovered in a library,
and adapting reusable understood and, sometimes, adapted to work in a new
components environment. Engineers must be reasonably confident of
finding a component in the library before they include a
component search as part of their normal development
process.
Approach Description
Architectural patterns Standard software architectures that support common types
of application systems are used as the basis of applications.
Described in Chapters 6, 13, and 20.
Design patterns Generic abstractions that occur across applications are
represented as design patterns showing abstract and
concrete objects and interactions. Described in Chapter 7.
Component-based Systems are developed by integrating components
development (collections of objects) that conform to component-model
standards. Described in Chapter 17.
Application frameworks Collections of abstract and concrete classes are adapted and
extended to create application systems.
Legacy system wrapping Legacy systems (see Chapter 9) are ‘wrapped’ by defining a
set of interfaces and providing access to these legacy
systems through these interfaces.
Approach Description
Service-oriented systems Systems are developed by linking shared services, which
may be externally provided. Described in Chapter 19.
Software product lines An application type is generalized around a common
architecture so that it can be adapted for different customers.
COTS product reuse Systems are developed by configuring and integrating
existing application systems.
ERP systems Large-scale systems that encapsulate generic business
functionality and rules are configured for an organization.
Configurable vertical Generic systems are designed so that they can be configured
applications to the needs of specific system customers.
Approach Description
Program libraries Class and function libraries that implement commonly used
abstractions are available for reuse.
Model-driven engineering Software is represented as domain models and
implementation independent models and code is generated
from these models. Described in Chapter 5.
Program generators A generator system embeds knowledge of a type of
application and is used to generate systems in that domain
from a user-supplied system model.
Aspect-oriented software Shared components are woven into an application at different
development places when the program is compiled. Described in Chapter
21.
Security
WAFs may include classes to help implement user authentication (login) and
access.
Dynamic web pages
Classes are provided to help you define web page templates and to populate
these dynamically from the system database.
Database support
The framework may provide classes that provide an abstract interface to different
databases.
Session management
Classes to create and manage sessions (a number of interactions with the
system by a user) are usually part of a WAF.
User interaction
Most web frameworks now provide AJAX support (Holdener, 2008), which allows
more interactive web pages to be created.
Chapter 16 Software reuse 20
Extending frameworks
Lecture 2
Platform specialization
Different versions of the application are developed for
different platforms.
Environment specialization
Different versions of the application are created to
handle different operating environments e.g. different
types of communication equipment.
Functional specialization
Different versions of the application are created for
customers with different requirements.
Process specialization
Different versions of the application are created to
support different business processes.
Product line architectures
Software product lines are related applications that are developed from a
common base. This generic system is adapted to meet specific
requirements for functionality, target platform or operational configuration.
COTS product reuse is concerned with the reuse of large-scale, off-the-shelf
systems. These provide a lot of functionality and their reuse can radically
reduce costs and development time. Systems may be developed by
configuring a single, generic COTS product or by integrating two or more
COTS products.
Enterprise Resource Planning systems are examples of large-scale COTS
reuse. You create an instance of an ERP system by configuring a generic
system with information about the customer’s business processes and rules.
Potential problems with COTS-based reuse include lack of control over
functionality and performance, lack of control over system evolution, the
need for support from external vendors and difficulties in ensuring that
systems can inter-operate.