








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









THIS CHAPTER SURVEYS best practices for software development and establishes a context for the Rational Unified Process.
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
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.
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
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.
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
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.
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.
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.
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.
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.