5

Click here to load reader

Managing Software Productivity and Reuse Barry Boehm ...sunset.usc.edu/Activities/aug24-25/Boehm_column.pdf · Managing Software Productivity and Reuse Barry Boehm, Draft 2, 7/26/99

Embed Size (px)

Citation preview

Page 1: Managing Software Productivity and Reuse Barry Boehm ...sunset.usc.edu/Activities/aug24-25/Boehm_column.pdf · Managing Software Productivity and Reuse Barry Boehm, Draft 2, 7/26/99

Managing Software Productivity and Reuse Barry Boehm, Draft 2, 7/26/99

There are three main strategies that your organization can use to improve its software productivity:

1. Working faster, via tools that automate or speed up previously labor-intensive tasks; 2. Working smarter, primarily via process improvements which avoid or reduce non value-

adding tasks; 3. Work avoidance, via reuse of software artifacts instead of custom development on each

project. Which strategy will produce the highest payoff? An extensive analysis addressed this question for a very large organization: the U.S. Department of Defense (DOD) [1]. The analysis factored in existing labor distributions by phase and activity, normal commercial trends, technology capability trends, and technology transition delays. It concluded that a pro-active DOD strategy could achieve the following percentage savings over and above the normal improvements accrued via a business-as-usual approach: 1. Added working-faster savings: 8% 2. Added working-smarter savings: 17% 3. Added work-avoidance savings: 47%

The analysis also concluded that all three strategies were worth pursuing in concert, as their benefits were largely complementary. However, for this column, I’ll focus on reuse, as it has the biggest potential payoffs. It also has some big potential pitfalls, which I’ll address first. Then, I’ll discuss the critical success factors for successfully managing a software reuse initiative. Finally, I’ll show some data indicating that reuse capabilities are already generating software productivity increases nearly as remarkable as those for hardware. Software Reuse Pitfalls Here are some of the most frequent pitfalls people encounter in trying to achieve software reuse savings, with illustrative examples. - Field of Dreams (build a repository of components, and the reusers will come). An early DOD “Reuse

2000” initiative, whose main goal was just to accumulate 2000 reuse candidates as quickly as possible, found that the components were virtually unused, due to non-technical factors such as risk-aversion and not-invented-here (NIH) effects.

- Component vs. Interface Focus. The Common Ada Missile Packages program addressed the risk and NIH effects via a community effort, but the components developed were insufficiently reusable due to the lack of a domain architecture with appropriate interface specifications for reusable components.

- Overgeneralization. The National Library of Medicine’s MEDLARS II publication system was built with many layers of abstraction to support a wide range of future publication systems. It was eventually scrapped after two expensive hardware upgrades were still insufficient to process the MEDLARS II workload.

- Scalability. Reuse via very high level languages (VHLLs) is highly effective for many small systems, but it does not scale up well. The New Jersey Department of Motor Vehicles auto registration system was developed using the VHLL IDEAL; its performance was so poor that eventually over a million New Jersey cars were driving around without their license renewals.

Page 2: Managing Software Productivity and Reuse Barry Boehm ...sunset.usc.edu/Activities/aug24-25/Boehm_column.pdf · Managing Software Productivity and Reuse Barry Boehm, Draft 2, 7/26/99

Technical Obsolescence. In the 1970’s and early 1980’s, TRW won many digital processing competitions with a formidable domain architecture and set of reusable components based on DEC VAX processors with attached vector-processor boxes. By the mid-1980’s, though, this architecture was losing out to more powerful approaches involving distributed processing and application-specific integrated circuit chips. Critical Success Factors for Software Reuse The eight critical success factors below summarize and reference several valuable sources of information on both the management and the technical aspects of software reuse. 1. Adopt a product line approach. This involves determining the right product lines for your organization,

developing domain-specific software architectures for your product line, and developing product-line solutions for the critical success factors below. The CMU Software Engineering Institute’s Product Line Practices web site [2] has a wealth of useful guidelines for doing this.

2. Perform a business case analysis to determine the right scope and level of expectation for your product line. The books by Reifer [3] and Lim [4] have excellent treatments of product line business case analysis.

3. Focus on achieving black-box reuse. Once you have to open up and modify a reusable component, you incur a number of added costs, which can compromise your business case. The book by Poulin [5] and the forthcoming book on COCOMO II [6] have helpful data and models for reasoning about black-box vs. white-box reuse.

4. Establish an empowered product line manager and stakeholder buy-in. This is the most critical success factor of all. Without a manager empowered and accountable for making product line investments and ensuring that the reusable artifacts get used, and without buy-in from the various asset producers, purveyors, and users, no amount of technology is going to make much difference. The book by Jacobson, Griss, and Jonsson [7], has excellent case studies of Ericsson’s and Hewlett Packard’s experiences in this regard.

5. Establish reuse-oriented processes and organizations. For example, serious “model clashes” occur in trying to reuse assets within a requirements-first waterfall process model. If you lock in on a one-second response time requirement, and none of your reusable components (e.g. COTS DBMS’s) can process your workload in less than two seconds, you have a very expensive custom component to develop. You are also likely to need new organizational entities for such functions as reusable asset certification, version and configuration control, repository management, and adaptation to change. See Reifer [3] and the ISPW-10 Proceedings [8] for further useful information on these issues.

6. Adopt an incremental approach, employing carefully chosen pilot projects and real-world feedback. The Hewlett-Packard incremental approach in [7] is a particularly good example.

7. Use metrics-based reuse operations management. Your reuse business case and incremental plan provide a good framework for tracking progress with respect to expectations, and making appropriate adjustments where necessary. Lim [4] and Poulin [5] are particularly strong on reuse metrics and their use in management.

8. Establish a pro-active product-line evolution strategy. This is your guard against the technical obsolescence pitfall. Your product line will be impacted by rapidly moving technologies such as CORBA, DCOM, Web, and Java infrastructures. Without investments in monitoring, experimenting with, and adapting to such trends, obsolescence is a real danger.

Reuse Is Big Already

When I was advocating investments in software technology at DARPA, I was continually frustrated by the hardware guys’ ability to show curves indicating exponential growth in DOD’s number of transistors owned or number of Internet packets handled, while the counterpart software curves would continue to show a relatively flat 8-10 delivered source instructions per person-day. In self-defense, and with the help of Tom Frazier’s cost analysis group at IDA, we came up with a set of curves that counted executable machine instructions of DOD software (lines of code in service: LOCS) the same way the hardware guys counted DOD transistors: adding up the average number on each

Page 3: Managing Software Productivity and Reuse Barry Boehm ...sunset.usc.edu/Activities/aug24-25/Boehm_column.pdf · Managing Software Productivity and Reuse Barry Boehm, Draft 2, 7/26/99

ship, airplane, workstation, etc., used by DOD, and multiplying by the number of ships, airplanes, workstations, etc. owned by DOD. Figure 1 shows the resulting trends in LOCS of DOD software and DOD cost in $/LOCS between 1950 and 2000. I’ve conservatively estimated the figures for 2000 by just taking 2 million DOD computers times 100 million executable machine instructions per computer, or 200 trillion LOCS. Based on a conservative $40 billion/year DOD software cost, the cost/LOCS is $.0002/LOCS or .02¢/LOCS. And the improvements come largely from software reuse. One might object that not all of these LOCS are adding value for their consumers. But, hey, the same can be said for all those transistors and Internet packets. They all pass somewhat similar market tests.

Some corroborative trends are shown in Bernstein’s chart (Figure 2) of the software expansion

factor: the ratio of machine lines of code to a source line of code [9]. Bernstein’s historical data shows an order of magnitude increase every 20 years, with the most significant recent gains coming from software reuse. The LOCS curve in Figure 1 reflects a combination of Bernstein’s productivity trends and the trends in the number of copies of software products being put to use.

10 4

10 5

10 6

10 7

10 8

10 9

10 10

10 11

10 12

10 13

10 14

10 15

1950 1960 1970 1980 1990 2000

0.00001

0.0001

0.001

0.01

0.1

1

10

100

1000

10000

100000

1000000

$

LOCS

LOCS

Total $/LOCS

Total LOCS

Years

Figure 1. DOD Lines of Code in Service and Cost/LOCS

Page 4: Managing Software Productivity and Reuse Barry Boehm ...sunset.usc.edu/Activities/aug24-25/Boehm_column.pdf · Managing Software Productivity and Reuse Barry Boehm, Draft 2, 7/26/99

Reuse Opportunities and Challenges Remain

Even with the significant productivity gains shown in Figures 1 and 2, much more remains to be

done in both the technical and management domains to fully capitalize on software reuse. Examples include stronger technical foundations for software architectures and component composition; more change-adaptive components, connectors, and architectures; creating more effective reuse incentive structures; domain engineering and business case analysis techniques; better techniques for dealing with COTS integration; and creating appropriate mechanisms for dealing with liability issues, intellectual property rights, and software artifacts as capital assets. Even more tremendous productivity gains await our progress on these opportunities and challenges.

Techno logychange:

Expans ionFactor

The ra t ioof source

line ofcode to amach ine -level l ineof code

0

1 0

1 0 0

1 0 0 0

1960 1965 1970 1975 1980 1985 1990 20001995

Order o f Magn i tude Increase Every Twenty Years

M a c h i n eInstruct ions

M a c r oAssemble r

High Leve lL a n g u a g e

Da tabaseM a n a g e r

On- l ine

Regress ionTes t ing

Prototyping

4 G L

S u b s e c o n dT i m e

Shar ing

Smal lSca leR e u s e

Objec t Or ien ted

P r o g r a m m i n g

Large Sca leR e u s e

1 4 21 1 3

8 17 5

4 737 .5

3 0

1 5

3

4 7 56 3 8

Projec t ion

Figure 2. Trends in Software Expansion

Page 5: Managing Software Productivity and Reuse Barry Boehm ...sunset.usc.edu/Activities/aug24-25/Boehm_column.pdf · Managing Software Productivity and Reuse Barry Boehm, Draft 2, 7/26/99

References

1. B.W. Boehm, “Economic Analysis of Software Technology Investments,” in T. Gulledge and W.

Hutzler (ed.), Analytical Methods in Software Engineering Economics, Springer-Verlag, 1993. 2. CMU-SEI Product Line Practices web site: http://www.sei.cmu.edu/activities/plp/plp_init.html 3. D.J. Reifer, Practical Software Reuse, John Wiley & Sons, 1997. 4. W.C. Lim, Managing Software Reuse, Prentice Hall, 1998. 5. J.S. Poulin, Measuring Software Reuse, Addison Wesley, 1997. 6. B.W. Boehm, et al., Estimating Software Costs with COCOMO II, Prentice Hall, 2000 (to appear).

7. I. Jacobson, M.L. Griss, and P. Jonsson, Software Reuse, Addison Wesley, 1997.

8. B. Boehm, M. Kellner, and D. Perry (ed.), Proceedings, ISPW-10: Process Support of Software Product

Lines, IEEE-CS Press, 1998. 9. L. Bernstein, “Software Investment Strategy,” Bell Labs Technical Journal, Summer 1997, pp. 233-

242.