Docsity

Understanding Software Aging: Causes, Costs, and Prevention, Study notes of Computer Science

Partial preview of the text

Download Understanding Software Aging: Causes, Costs, and Prevention and more Study notes Computer Science in PDF only on Docsity!

Software Design (Software Aging)Software Design (Software Aging)

“Software Aging”^ by D. L. Parnas

Software Design (Software Aging)Software Design (Software Aging)

Software Aging

“Programs, like people, get old. We can’t prevent aging, but we can^ understand its causes, take steps to limit its effects, temporarily^ reverse some of the damage it has caused, and prepare for the day^ when the software is no longer viable. ... (We must) lose our^ preoccupation with the first release and focus on the long term^ health of our products.”

D.L. Parnas

Software Design (Software Aging)Software Design (Software Aging)

Software Does Age

  • Software aging is gaining in significancebecause:^ – of the growing economic importance of

software, – software is the “capital” of many high-techfirms.

Software Design (Software Aging)Software Design (Software Aging)

Software Does Age

  • The authors and owners of new softwareproducts often look at aging software withdisdain. • “If only the software had been designedusing today’s languages and techniques …” • Like a young jogger scoffing at an 86 yearold man (ex-champion swimmer) andsaying that he should have exercised morein his youth!

Software Design (Software Aging)Software Design (Software Aging)

Lack of Movement

  • Unless software is frequently updated, itsuser’s will become dissatisfied and changeto a new product. • Excellent software developed in the 60’swould work perfectly well today, butnobody would use it. • That software has aged even though nobodyhas touched it. • Actually, it has aged because nobodybothered to touch it.

Software Design (Software Aging)Software Design (Software Aging)

Ignorant Surgery

  • One must upgrade software to preventaging. • Changing software can cause aging too. • Changes are made by people who do notunderstand the software.^ – Hence, software structure degrades.

Software Design (Software Aging)Software Design (Software Aging)

The Cost of Software Failure • Inability to keep up, • reduced performance, • decreasing reliability.

Software Design (Software Aging)Software Design (Software Aging)

Inability To Keep Up

-^ As software ages, it grows bigger. •^ “Weight gain”

is a result of the fact that the

easiest way to add a feature is to add newcode. • Changes become more difficult as the sizeof the software increases because:^ – There is more code to change,^ – it is more difficult to find the routines that mustbe changed. • Result:

Customers switch to a “younger” product to get the new features.

Software Design (Software Aging)Software Design (Software Aging)

Decreasing Reliability

-^ As the software is maintained, errors areintroduced. • Many studies have shown that each time anattempt is made to decrease the failure rateof a system, the failure rate got worse! • That means that, on average, more than oneerror is introduced for every repaired error.

Software Design (Software Aging)Software Design (Software Aging)

Decreasing Reliability (Cont’d) • Often the choice is to either:^ – abandon the project^ – stop fixing bugs • For a commercial product, Parnas was oncetold that the list of known unrepaired bugsexceeded 2,000.

Software Design (Software Aging)Software Design (Software Aging)

Reducing the Cost of SW Aging

(Cont’d)

  • Responsible, professional, organizationsrealize that more work is invested betweenthe time after the first successful run and thefirst release than is required to get the firstsuccessful run. • Extensive testing and rigorous reviews arenecessary.

Software Design (Software Aging)Software Design (Software Aging)

Preventive Medicine

  • Design for success • Keep records (documentation) • Seek second opinions (reviews)

Software Design (Software Aging)Software Design (Software Aging)

Design for Change

  • To apply this principle one begins by tryingto characterize the changes that are likely tooccur over the “lifetime” of a product. • Since actual changes cannot be predicted,predictions will be about classes of changes:^ – changes in the UI^ – change to a new windowing system^ – changes to data representation^ – porting to a new operating system ...

Software Design (Software Aging)Software Design (Software Aging)

Design for Change (Cont’d) • Since it is impossible to make everythingequally easy to change, it is important to: – estimate the probabilities of each type ofchange – organize the software so that the items that aremost likely to change are “confined” to a smallamount of code