Software Aging By David Lorge Parnas Source: “Software Findamentals Collected papers by David L. Parnas.” Edited by Daniel M. Hoffman and Davic M. Weiss.

Slides:



Advertisements
Similar presentations
Test process essentials Riitta Viitamäki,
Advertisements

SOFTWARE MAINTENANCE 24 March 2013 William W. McMillan.
These slides are designed to accompany Software Engineering: A Practitioner’s Approach, 6/e (McGraw-Hill 2005). Slides copyright 2005 by Roger Pressman.1.
Software Configuration Management
CS 290C: Formal Models for Web Software Lecture 10: Language Based Modeling and Analysis of Navigation Errors Instructor: Tevfik Bultan.
Software Evolution Managing the processes of software system change
March 30, Exploratory Testing Testing Approaches Analytical Information-driven Intuitive Exploratory Design the tests and test concurrently Learn.
Modified from Sommerville’s originalsSoftware Engineering, 7th edition. Chapter 21 Slide 1 Software evolution.
Presented by: Hatem Halaoui
Modified from Sommerville’s originalsSoftware Engineering, 7th edition. Chapter 21 Slide 1 Software evolution.
Software evolution.
School of Computer ScienceG53FSP Formal Specification1 Dr. Rong Qu Introduction to Formal Specification
Software evolution.
Software maintenance Managing the processes of system change.
Software Reengineering 2003 년 12 월 2 일 최창익, 고광 원.
Software Re-engineering
Chapter 9 – Software Evolution and Maintenance
SEG Software Maintenance1 Software Maintenance “The modification of a software product after delivery to correct faults, to improve performance or.
CS 4310: Software Engineering
PROGRAMMING LANGUAGES The Study of Programming Languages.
Lecture # 22 Software Evolution
What is Software Engineering? the application of a systematic, disciplined, quantifiable approach to the development, operation, and maintenance of software”
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 1: Software and Software Engineering.
Software evolution. Objectives l To explain why change is inevitable if software systems are to remain useful l To discuss software maintenance and maintenance.
Why is software engineering worth studying?  Demand for software is growing dramatically  Software costs are growing per system  Many projects have.
المحاضرة الثالثة. Software Requirements Topics covered Functional and non-functional requirements User requirements System requirements Interface specification.
Chapter 3: Software Maintenance Process Omar Meqdadi SE 3860 Lecture 3 Department of Computer Science and Software Engineering University of Wisconsin-Platteville.
Teaching material for a course in Software Project Management & Software Engineering – part II.
Introduction CS 3358 Data Structures. What is Computer Science? Computer Science is the study of algorithms, including their  Formal and mathematical.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 1: Software and Software Engineering.
Chapter 11 Maintaining the System System evolution Legacy systems Software rejuvenation.
Ethics of Software Testing Thomas LaToza CS 210 Final Presentation 12 / 2 / 2002.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 1: Software and Software Engineering.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 1: Software and Software Engineering.
Introduction CS 3358 Data Structures. What is Computer Science? Computer Science is the study of algorithms, including their  Formal and mathematical.
SOFTWARE MAINTENANCE 1. TOPICS TO BE DISCUSSED.. Definition of Maintenance Software Maintenance Types of Maintenance Maintenance Process Need of Maintenance.
©Ian Sommerville 2004 Software Engineering. Chapter 21Slide 1 Chapter 21 Software Evolution.
Manag ing Software Change CIS 376 Bruce R. Maxim UM-Dearborn.
Lecture 14 Maintaining the System and Managing Software Change SFDV Principles of Information Systems.
© SERG Software Design (Software Aging) “Software Aging” by D. L. Parnas.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 21 Slide 1 Software evolution 1.
Chapter 2: Software Maintenance Omar Meqdadi SE 3860 Lecture 2 Department of Computer Science and Software Engineering University of Wisconsin-Platteville.
SWE 513: Software Engineering
Software Aging By David Lorge Parnas Source: “Software Findamentals Collected papers by David L. Parnas.” Edited by Daniel M. Hoffman and Davic M. Weiss.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 21 Slide 1 Software evolution.
Chapter 9 – Software Evolution 1Chapter 9 Software evolution.
Reverse Engineering. Reverse engineering is the general process of analyzing a technology specifically to ascertain how it was designed or how it operates.
1 Chapter 13 (Week 13) SYSTEMS MAINTENANCE AND EVALUATION Chapter 13: SYSTEMS MAINTENANCE AND EVALUATION Throughout its life, a system should operate effectively.
Software Engineering Lecture 8: Quality Assurance.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 1: Software and Software Engineering.
FACTORS AFFECTING THE EFFICIENCY OF DATA PROCESSING SYSTEMS.
Chapter 10 Software quality. This chapter discusses n Some important properties we want our system to have, specifically correctness and maintainability.
Banaras Hindu University. A Course on Software Reuse by Design Patterns and Frameworks.
Chapter 8: Maintenance and Software Evolution Ronald J. Leach Copyright Ronald J. Leach, 1997, 2009, 2014,
Software Maintenance1 Software Maintenance.
© SERG Reverse Engineering (Software Maintenance & Reengineering) Software Maintenance Managing the processes of system change.
INTRODUCTION CSE 470 : Software Engineering. Goals of Software Engineering To produce software that is absolutely correct. To produce software with minimum.
 System Requirement Specification and System Planning.
MANAGEMENT INFORMATION SYSTEM
Software Development Module Code: CST 240 Chapter 6: Software Maintenance Al Khawarizmi International College, AL AIN, U.A.E Lecturer: Karamath Ateeq.
Software Configuration Management
Chapter 18 Maintaining Information Systems
Software Maintenance PPT By :Dr. R. Mall.
Software Testing and Maintenance Maintenance and Evolution Overview
Chapter 9 – Software Evolution and Maintenance
Chapter 8 Software Evolution.
Software Maintenance Part1 Introduction. Outlines What Is Software Maintenance Purposes of Maintenance Why We Need It Maintenance Difficilties Some Tips.
Introduction Software maintenance:
Software Re-engineering and Reverse Engineering
Software Design (Software Aging) Pg 1
Presentation transcript:

Software Aging By David Lorge Parnas Source: “Software Findamentals Collected papers by David L. Parnas.” Edited by Daniel M. Hoffman and Davic M. Weiss

Do software systems age analogously to human? What Nonsense! Software is a mathematical product; mathematics doesn’t decay with time If a program is correct today, it will be correct 100 years from now If it is wrong 100 years from now, it must have been wrong when it was written It make no sense to talk about software aging TRUE, BUT NOT REALY RELEVANT Software does get old and it costs more in old age than it did at birth.

Do software systems age analogously to human? What Nonsense! Software is a mathematical product; mathematics doesn’t decay with time If a program is correct today, it will be correct 100 years from now If it is wrong 100 years from now, it must have been wrong when it was written It make no sense to talk about software aging TRUE, BUT NOT REALY RELEVANT Software does get old and it costs more in old age than it did at birth.

Software products do exhibit a phenomenon that closely resemble human aging. Many products are now viewed as a burdensome legacy from the past. A steadily increasing amount of effort is going into the support of these older products. Like human aging, software aging is inevitable, but like human aging, there are things that we can do to slow down the process and sometimes even reverse its effects. The fact that software is now becoming a major “capital” of many high- tech firms. The aging of these products is impeding the further development of the systems that include them.

What causes software aging? Two basic types of software aging: Failure to keep up with changing environment Unless software is frequently updated, its users will become dissatisfied and they will change to a new product as soon as the benefits outweigh the costs of retaining and converting Tissue damage resulting from maintenance It is essential to upgrade software to prevent aging, changing software can cause a different form of aging. But changes made by people who do not understand the original design concept almost always cause the structure of the program to degrade. Both lead to a decline in the value of a software product

Causes of software aging: Our expectations have changed We are no longer willing to use the clumsy software interfaces of yesterday We demand interactive access Old software would still do its job if used, but nobody would use it Old software must compete with new products When changes are not made, it seems as if the software has aged!

More causes of software aging: Designers of software had simple concept in mind when writing the program Changes made without understanding design concept Changed code is inconsistent with original concept After changes, one must know both the original design concept, and the exceptions After more changes – NOBODY understands the modified product When nobody understands the product Changes take longer Changes are more likely to introduce “bugs” The problem is exacerbated when maintainers do not have time to update the documentation

More causes Many companies allow the product line to split, with the second line inheriting the properties of the first. This policy leads to difficult to constrain, growth. Changes must be made to many versions instead of just one The cost of maintenance gets very high, it is no longer possible to keep up with the market on all the versions. Plus Developers move on to other projects Developers forget what they did and why they did it

More Causes: Bad documentation Information not available Information not correct Information hard to find Information must be verified Information is not precise, easily misinterpreted Documentation are not kept “alive”

The costs of software aging Rising Maintenance Costs It harder to know where to make changes Changes are harder to make There are more errors Testing becomes more of a burden Documentation takes longer to update

Inability to keep up with others Newer products have desired features Newer products can be adapted more quickly Newer products win more market share Program size increased order of magnitude makes changes more difficult

Reduced performance The size of the program grows; more demands on the computer resource More demands on the computer memory, more delays caused by swapping Performance decreases because of poor (or poorly understood) design Customers must upgrade their hardware to get acceptable response -- leads to switch to newer products to obtain better performance

Decreasing reliability Errors are introduced; each error corrected may introduce more than one error Improvements can make things worse -- often the only choice was to abandon the product or at least to stop repairing bugs Large groups of people are devoted to customer requested repairs

Reducing the costs of software aging Experience showed that any serious product requires extensive testing, review and revision after the first successful run. The work that is invested by a development organization after the first successful run and before the first release is usually much greater than that required to get the first successful run. Most organization only focus on that first release Experience with software aging tells us that we should be looking far beyond the first release to the time when product is old.

What can we do to delay the decay and limit software aging’s effects Design for success The only software that does not change is software that is not used. Designing for change is designing for success Apply: Information hiding Abstraction Separation of concerns Data hiding Object orientation By characterizing the likely classes changes; estimate the probabilities of each type of change Organize the software to confine likely changes to a small amount of code Implement objects that hide changeable data structures Provide an abstract interface that abstracts from the changes

Why the industry failed to apply these ideas? Programmers are impatient with such considerations; they are eager to meet deadline, there is no time to design for change Designs that result from a careful application of information hiding are not “natural” for many software designers Designers mimic older designs Many confuse design principles with choice of language Many developers do not have the education appropriate to the job

There is no miracle drugs or quick fix to this problem Good design is HARD, it requires: Careful consideration of possible changes Careful examination of constraints Careful design of interface Careful review Qualified people Do not depend on languages, we must recognize that software problems never went away in spite of the introduction of FORTRAN, PL/I. ADA

Keeping records – Documentation Design concepts and decisions are not recorded Documentation is neglected by researchers and practitioners Documentation is usually poorly organized, incomplete and imprecise Often the coverage is random, written when time and interest are there Where documentation is a contractual requirement, it’s often done by a technical writer who does not understand the system Documentation that seems clear today, may be difficult to understand tomorrow Documentation is not an “attractive” topic. But it is your responsibility as a software engineer to produce accurate design document and to keep them up-to-date

Second Opinions – reviews Reviews are not standard practice among developers, why? Many developers have no professional training in software and the concept of preparing and holding a design review is non-existent Lack of documentation is review against Software is often produced under time pressure, leads to “short-cut” Reviewer must represent long-term interests of the manufacturer or client Review for ease of change must become standard

Software aging is inevitable Our ability to design for change depends on our ability to predict the future We will make changes that violate our original assumptions Documentation, even if formal and precise, will never be perfect Reviews will overlook some issues Preventive measures are worthwhile, but we cannot eliminate aging We have to think about how to care for aging software!

How to care for aging software: Stopping the deterioration This is done by introducing, or recreating structure whenever changes are made. Applying the same design principles, if a design decision about the system is changed, the new data structure or algorithm can be hidden(encapsulated) in a way that make any future changes of that aspect of the system easier. Careful reviews must ensure that each changes is consistent with the intent of the original designers. New documents must be created and reviewed The code must be checked to make sure that it has been made consistent with these new documents

Retroactive documentation To slow the aging upgrade the documentation! Correcting the documentation can be a major project, but worth undertaking Redoing the documentation often leads to improvements in the software Writing the documentation is a way to study and understand the software It makes the next person’s job easier

Amputation Some code has been modified so often and so thoughtlessly, it is not worth saving. Often it should never have been written at all Sections of code should be discarded and replaced by new code which perform the function in some other way.

Restructuring When a large family of products gets out of control, a major effort to restructure it is appropriate. First step – reduce the size of the program Examine the various versions to determine why they are different Replace many versions with one by introducing “switches” that are checked at run-time to determine which version of behavior is wanted. It often pays to ship the same code to everyone – even those who have not paid for all the features.. The features can be “turned off”

Planning ahead If we want to prevent or at least slow down software aging, we must recognize it as a problem and plan for it. We must imposing standards on structure and documentation Design have to be documented, reviewed before coding begins Changes have to be documented and reviewed A thorough analysis of future changes must be a part of every product design and maintenance action