Docsity

Software tools and practices, Schemes and Mind Maps of Software Engineering

Toggle sidebar
bg1
Chapter 1
Software Development
Best Practices
by Grady Booch
THISCHAPTERSURVEYS best practices for software development and
establishes a context for the Rational Unified Process.
THE VALUE OF SOFTWARE
Software is the fuel on which modern businesses are run, govern-
ments rule, and societies become better connected. Software has
helped us create, access, and visualize information in previously
inconceivable ways and forms. Globally, the breathtaking pace of
progress in software has helped drive the growth of the world’s
economy. On a more human scale, software-intensive products
have helped cure the sick and have given voice to the speechless,
mobility to the impaired, and opportunity to the less able. From all
these perspectives, software is an indispensable part of our modern
world.1
The good news for software professionals is that worldwide
economies are becoming increasingly dependent on software. The
1. Grady Booch, “Leaving Kansas,” IEEE Software 15(1) Jan.–Feb. 1998,
pp. 32–35.
3
î™Čî™”î™°î˜°î˜±î˜źî™Šî™­   î™Čî™č î™î™Łî™Žî™Żî™ąî™„î™Č î˜Č î˜Č î˜ș 
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Partial preview of the text

Download Software tools and practices and more Schemes and Mind Maps Software Engineering in PDF only on Docsity!

Chapter 1

Software Development

Best Practices

by Grady Booch

THIS CHAPTER SURVEYS best practices for software development and establishes a context for the Rational Unified Process.

THE VALUE OF SOFTWARE

Software is the fuel on which modern businesses are run, govern- ments rule, and societies become better connected. Software has helped us create, access, and visualize information in previously inconceivable ways and forms. Globally, the breathtaking pace of progress in software has helped drive the growth of the world’s economy. On a more human scale, software-intensive products have helped cure the sick and have given voice to the speechless, mobility to the impaired, and opportunity to the less able. From all these perspectives, software is an indispensable part of our modern world.^1 The good news for software professionals is that worldwide economies are becoming increasingly dependent on software. The

  1. Grady Booch, “Leaving Kansas,” IEEE Software 15(1) Jan.–Feb. 1998, pp. 32–35.

3

4 Chapter 1 / Software Development Best Practices

kinds of software-intensive systems that technology makes possible and society demands are expanding in size, complexity, distribu- tion, and importance. The bad news is that the expansion of these systems in size, complexity, distribution, and importance pushes the limits of what we in the software industry know how to develop. Trying to ad- vance legacy systems to more modern technology brings its own set of technical and organizational problems. Compounding the prob- lem is that businesses continue to demand increased productivity and improved quality with faster development and deployment. Ad- ditionally, the supply of qualified development personnel is not keeping pace with the demand. The net result is that building and maintaining software is hard and getting harder; building quality software in a repeatable and predictable fashion is harder still.

SYMPTOMS AND ROOT CAUSES OF SOFTWARE

DEVELOPMENT PROBLEMS

Different software development projects fail in different ways— and, unfortunately, too many of them fail—but it is possible to iden- tify a number of common symptoms that characterize these kinds of projects: 2,

 Inaccurate understanding of end-user needs  Inability to deal with changing requirements  Modules that don’t fit together  Software that’s hard to maintain or extend  Late discovery of serious project flaws  Poor software quality  Unacceptable software performance

  1. Caper Jones, Patterns of Software Systems Failure and Success. London: In- ternational Thompson Computer Press, 1996.
  2. Edward Yourdon, Death March: Managing “Mission Impossible” Projects. Upper Saddle River, NJ: Prentice Hall, 1997.

6 Chapter 1 / Software Development Best Practices

you can precisely quantify their value but rather because they are observed to be commonly used in industry by successful organiza- tions. These best practices are as follows.

1. Develop software iteratively. 2. Manage requirements. 3. Use component-based architectures. 4. Visually model software. 5. Verify software quality. 6. Control changes to software.

DEVELOP SOFTWARE ITERATIVELY

Classic software development processes follow the waterfall life cycle, as illustrated in Figure 1-1. In this approach, development proceeds linearly from requirements analysis through design, code and unit testing, subsystem testing, and system testing. The fundamental problem of this approach is that it pushes risk forward in time so that it’s costly to undo mistakes from earlier phases. An initial design will likely be flawed with respect to its key requirements, and, furthermore, the late discovery of design de-

FIGURE 1-1 The waterfall life cycle

Requirements

Design Code and Unit

Subsystem

System

Time

Analysis

Testing

Testing

Testing

Risk

DEVELOP SOFTWARE ITERATIVELY 7

fects tends to result in costly overruns or project cancellation. As Tom Gilb aptly said, “If you do not actively attack the risks in your project, they will actively attack you.” 5 The waterfall approach tends to mask the real risks to a project until it is too late to do any- thing meaningful about them. An alternative to the waterfall approach is the iterative and in- cremental process, as shown in Figure 1-2. In this approach, building on the work of Barry Boehm’s spiral model, 6 the identification of risks to a project is forced early in the life cycle, when it’s possible to attack and react to them in a timely and efficient manner. This approach is one of continuous discovery, invention, and implementation, with each iteration forcing the development team

  1. Tom Gilb, Principles of Software Engineering Management. Harlow, UK: Addison-Wesley, 1988, p. 73.
  2. Barry W. Boehm, “A Spiral Model of Software Development and Enhance- ment,” IEEE Computer , May 1988, pp. 61–72.

FIGURE 1-2 An iterative and incremental process

Requirements

Management

Analysis and Design

Implementation

Deployment

Test

Evaluation

Initial Planning

Each iteration

Planning

Environment

results in an executable release

USE COMPONENT - BASED ARCHITECTURES 9

ments and assessing their impact; and tracking and documenting trade-offs and decisions. Managing the requirements of your project offers a number of solutions to the root causes of software development problems.

1. A disciplined approach is built into requirements management. 2. Communications are based on defined requirements. 3. Requirements can be prioritized, filtered, and traced. 4. An objective assessment of functionality and performance is possible. 5. Inconsistencies are more easily detected. 6. With suitable tool support, it is possible to provide a reposi- tory for a system’s requirements, attributes, and traces, with automatic links to external documents.

USE COMPONENT - BASED ARCHITECTURES

Visualizing, specifying, constructing, and documenting a software- intensive system demand that the system be viewed from a number of different perspectives. Each of the different stakeholders—end users, analysts, developers, system integrators, testers, technical writers, and project managers—brings a different agenda to a project, and each of them looks at that system in a different way at different times over the project’s life. A system’s architecture is per- haps the most important deliverable that can be used to manage these different viewpoints and thereby controls the iterative and incremental development of a system throughout its life cycle. A system’s architecture encompasses the set of significant deci- sions about

 The organization of a software system  The selection of the structural elements and their interfaces by which the system is composed  Their behavior, as specified by the collaborations among those elements  The composition of these structural and behavioral elements into progressively larger subsystems

10 Chapter 1 / Software Development Best Practices

 The architectural style that guides this organization: these elements and their interfaces, their collaborations, and their composition

Software architecture is concerned not only with structure and behavior but also with usage, functionality, performance, resilience, reuse, comprehensibility, economic and technology constraints and trade-offs, and aesthetic concerns. Building resilient architectures is important because they en- able economically significant degrees of reuse, offer a clear divi- sion of work among teams of developers, isolate hardware and software dependencies that may be subject to change, and improve maintainability. Component-based development (CBD) is an important ap- proach to software architecture because it enables the reuse or cus- tomization of existing components from thousands of commercially available sources. Microsoft’s component object model (COM), the Object Management Group’s (OMG) Common Object Request Bro- ker Architecture (CORBA), and Sun’s Enterprise JavaBeans (EJB) offer pervasive and widely supported platforms on which compo- nent-based architectures are made possible. As Figure 1-3 indicates, components make reuse possible on a larger scale, enabling sys- tems to be composed from existing parts, off-the-shelf third-party parts, and a few new parts that address the specific domain and glue the other parts together. Coupled with the practice of developing software iteratively, using component-based architectures involves the continuous evo- lution of a system’s architecture. Each iteration produces an exe- cutable architecture that can be measured, tested, and evaluated against the system’s requirements. This approach permits the team to continuously attack the most important risks to the project. Using component-based architectures offers a number of solu- tions to the root causes of software development problems.

1. Components facilitate resilient architectures. 2. Modularity enables a clear separation of concerns among elements of a system that are subject to change. 3. Reuse is facilitated by leveraging standardized frameworks (such as COM+, CORBA, and EJB) and commercially avail- able components.

12 Chapter 1 / Software Development Best Practices

such as the UML (Unified Modeling Language), different members of the development team can unambiguously communicate their decisions to one another. Visual modeling tools facilitate the management of these mod- els, letting you hide or expose details as necessary. Visual modeling also helps to maintain consistency between a system’s artifacts: its requirements, designs, and implementations. In short, visual mod- eling helps improve a team’s ability to manage software complexity. When coupled with the practice of developing software itera- tively, visual modeling helps you expose and assess architectural changes and communicate those changes to the entire develop- ment team. With the right kind of tools, you can then synchronize your models and source code during each iteration. Modeling your software visually offers a number of solutions to the root causes of software development problems.

1. Use cases and scenarios unambiguously specify behavior. 2. Models unambiguously capture software design. 3. Nonmodular and inflexible architectures are exposed. 4. Detail can be hidden when necessary. 5. Unambiguous designs reveal their inconsistencies more readily.

FIGURE 1-4 Modeling a system from different perspectives

Class State

Scenario Component

Use-Case (^) Deployment

Model

Diagrams

Diagrams

Diagrams (^) Diagram

Diagrams

Diagrams

VERIFY SOFTWARE QUALITY 13

6. Application quality starts with good design. 7. Visual modeling tools provide support for UML modeling.

VERIFY SOFTWARE QUALITY

As Figure 1-5 illustrates, software problems are 100 to 1,000 times more expensive to find and repair after deployment. For this rea- son, it’s important to continuously assess the quality of a system with respect to its functionality, reliability, application perfor- mance, and system performance. Verifying a system’s functionality—the bulk of the testing activ- ity—involves creating tests for each key scenario, each of which represents some aspect of the system’s desired behavior. You can assess a system’s functionality by asking which scenarios failed and where, as well as which scenarios and corresponding code have not yet been exercised. As you are developing your software itera- tively, you test at every iteration, a process of continuous, quantita- tive assessment. Verifying software quality offers a number of solutions (see next page) to the root causes of software development problems.

FIGURE 1-5 The cost of fixing problems

Cost

Time

THE RATIONAL UNIFIED PROCESS 15

2. Change requests facilitate clear communications. 3. Isolated workspaces reduce interference among team members working in parallel. 4. Change rate statistics provide good metrics for objectively assessing project status. 5. Workspaces contain all artifacts, facilitating consistency. 6. Change propagation is assessable and controlled. 7. Changes can be maintained in a robust, customizable system.

THE RATIONAL UNIFIED PROCESS

A software development process has four roles. 7

1. Provide guidance as to the order of a team’s activities. 2. Specify which artifacts should be developed and when they should be developed. 3. Direct the tasks of individual developers and the team as a whole. 4. Offer criteria for monitoring and measuring the project’s products and activities.

Without a well-defined process, your development team will de- velop in an ad hoc manner, with success relying on the heroic efforts of a few dedicated individual contributors. This is not a sustainable condition. By contrast, mature organizations employing a well-defined process can develop complex systems in a repeatable and predict- able way. Not only is that a sustainable business, but also it’s one that can improve with each new project, thereby increasing the ef- ficiency and productivity of the organization as a whole. Such a well-defined process enables and encourages all of the best practices described earlier. When you codify these practices into a process, your development team can build on the collective experience of thousands of successful projects.

  1. Grady Booch, Object Solutions—Managing the Object Oriented Project. Read- ing, MA: Addison-Wesley, 1995.

16 Chapter 1 / Software Development Best Practices

The Rational Unified Process, as described in the following chapters, builds on these six commercial best practices to deliver a well-defined process. This is the context for the Rational Unified Pro- cess, a software development process focused on ensuring the pro- duction of quality systems in a repeatable and predictable fashion.

SUMMARY

 Building quality software in a repeatable and predictable fashion is hard.  There are a number of symptoms of common software development problems, and these symptoms are the observ- able results of deeper root causes.  Six commercial best practices strike at the root causes of these software development problems.

  • Develop software iteratively.
  • Manage requirements.
  • Use component-based architectures.
  • Visually model software.
  • Verify software quality.
  • Control changes to software.  The Rational Unified Process brings these best practices together in a form that is suitable for a wide range of projects and organizations.