Recent from talks
Nothing was collected or created yet.
Software evolution
View on WikipediaThis article may be confusing or unclear to readers. In particular, the introduction is written with unclear grammar and does not give an adequate overview of the topic. (February 2020) |
Software evolution is the continual development of a piece of software after its initial release to address changing stakeholder and/or market requirements. Software evolution is important because organizations invest large amounts of money in their software and are completely dependent on this software. Software evolution helps software adapt to changing businesses requirements, fix defects, and integrate with other changing systems in a software system environment.
General introduction
[edit]Fred Brooks, in his key book The Mythical Man-Month,[1] states that over 90% of the costs of a typical system arise in the maintenance phase, and that any successful piece of software will inevitably be maintained.
In fact, Agile methods stem from maintenance-like activities in and around web based technologies, where the bulk of the capability comes from frameworks and standards.[citation needed]
Software maintenance addresses bug fixes and minor enhancements, while software evolution focuses on adaptation and migration.
Software technologies will continue to develop. These changes will require new laws and theories to be created and justified. Some models as well would require additional aspects in developing future programs. Innovations and improvements do increase unexpected form of software development. The maintenance issues also would probably change as to adapt to the evolution of the future software. Software processes are themselves evolving, after going through learning and refinements, it is always improve their efficiency and effectiveness.[2]
Basic concepts
[edit]The need for software evolution comes from the fact that no one is able to predict how user requirements will evolve a priori .[3] In other words, the existing systems are never complete and continue to evolve.[4] As they evolve, the complexity of the systems will grow unless there is a better solution available to solve these issues. The main objectives of software evolution are ensuring functional relevance, reliability and flexibility of the system. Software evolution can be fully manual (based on changes by software engineers), partially automated (e.g. using refactoring tools) or fully automated.
Software evolution has been greatly impacted by the Internet:
- the rapid growth of World Wide Web and Internet Resources make it easier for users and engineers to find related information.
- open source development where anybody could download the source codes and hence modify it has enabled fast and parallel evolution (through forks).
Types of software maintenance
[edit]E.B. Swanson initially identified the three categories of maintenance: corrective, adaptive, and perfective. Four categories of software were then catalogued by Lientz and Swanson (1980).[5] These have since been updated and normalized internationally in the ISO/IEC 14764:2006:[6]
- Corrective maintenance: Reactive modification of a software product performed after delivery to correct discovered problems;
- Adaptive maintenance: Modification of a software product performed after delivery to keep a software product usable in a changed or changing environment;
- Perfective maintenance: Modification of a software product after delivery to improve performance or maintainability;
- Preventive maintenance: Modification of a software product after delivery to detect and correct latent faults in the software product before they become effective faults.
All of the preceding take place when there is a known requirement for change.
Although these categories were supplemented by many authors like Warren et al. (1999)[7] and Chapin (2001),[8] the ISO/IEC 14764:2006 international standard has kept the basic four categories.
More recently the description of software maintenance and evolution has been done using ontologies (Kitchenham et al. (1999),[9] Deridder (2002),[10] Vizcaíno (2003),[11] Dias (2003),[12] and Ruiz (2004)[13]), which enrich the description of the many evolution activities.
Stage model
[edit]Current trends and practices are projected forward using a new model of software evolution called the staged model.[14] Staged model was introduced to replace conventional analysis which is less suitable for modern software development is rapid changing due to its difficulties of hard to contribute in software evolution. There are five distinct stages contribute in simple staged model (Initial development, Evolution, Servicing, Phase-out, and Close-down).
- According to K.H.Bennett and V.T Rajlich,[14] the key contribution is to separate the 'maintenance' phase into an evolution stage followed by a servicing and phase out stages. The first version of software system which is lacking some features will be developed during initial development or also known as alpha stage.[14] However, the architecture has already been possessed during this stage will bring for any future changes or amendments. Most references in this stage will base on scenarios or case study. Knowledge has defined as another important outcome of initial development. Such knowledge including the knowledge of application domain, user requirements, business rules, policies, solutions, algorithm, etc. Knowledge also seems as the important factor for the subsequent phase of evolution.
- Once the previous stage completed successfully (and must be completed successfully before entering next stage), the next stage would be evolution. Users tend to change their requirements as well as they prefer to see some improvements or changes. Due to this factor, the software industry is facing the challenges of rapid changes environment. Hence the goal of evolution is to adapt the application to the ever-changing user requirements and operating environment.[14] During the previous stage, the first version application created might contain a lot of faults, and those faults will be fixed during evolution stage based on more specified and accurate requirements due to the case study or scenarios.
- The software will continuously evolve until it is no longer evolvable and then enter stage of servicing (also known as software maturity). During this stage, only minor changes will be done.
- Next stage which is phase-out, there is no more servicing available for that particular software. However, the software still in production.
- Lastly, close-down. The software use is disconnected or discontinued[14] and the users are directed towards a replacement.[14]
Lehman's Laws of Software Evolution
[edit]Prof. Meir M. Lehman, who worked at Imperial College London from 1972 to 2002, and his colleagues have identified a set of behaviours in the evolution of proprietary software. These behaviours (or observations) are known as Lehman's Laws. He refers to E-type systems as ones that are written to perform some real-world activity. The behavior of such systems is strongly linked to the environment in which it runs, and such a system needs to adapt to varying requirements and circumstances in that environment. The eight laws are:
- (1974) "Continuing Change" — an E-type system must be continually adapted or it becomes progressively less satisfactory[15]
- (1974) "Increasing Complexity" — as an E-type system evolves, its complexity increases unless work is done to maintain or reduce it[15]
- (1980) "Self Regulation" — E-type system evolution processes are self-regulating with the distribution of product and process measures close to normal[15]
- (1978) "Conservation of Organisational Stability (invariant work rate)" - the average effective global activity rate in an evolving E-type system is invariant over the product's lifetime[15]
- (1978) "Conservation of Familiarity" — as an E-type system evolves, all associated with it, developers, sales personnel and users, for example, must maintain mastery of its content and behaviour to achieve satisfactory evolution. Excessive growth diminishes that mastery. Hence the average incremental growth remains invariant as the system evolves.[15]
- (1991) "Continuing Growth" — the functional content of an E-type system must be continually increased to maintain user satisfaction over its lifetime
- (1996) "Declining Quality" — the quality of an E-type system will appear to be declining unless it is rigorously maintained and adapted to operational environment changes
- (1996) "Feedback System" (first stated 1974, formalised as law 1996) — E-type evolution processes constitute multi-level, multi-loop, multi-agent feedback systems and must be treated as such to achieve significant improvement over any reasonable base[16]
It is worth mentioning that the applicability of all of these laws for all types of software systems has been studied by several researchers. For example, see a presentation by Nanjangud C Narendra[17] where he describes a case study of an enterprise Agile project in the light of Lehman’s laws of software evolution. Some empirical observations coming from the study of open source software development appear to challenge some of the laws [vague][citation needed].
The laws predict that the need for functional change in a software system is inevitable, and not a consequence of incomplete or incorrect analysis of requirements or bad programming. They state that there are limits to what a software development team can achieve in terms of safely implementing changes and new functionality.
Maturity Models specific to software evolution have been developed to improve processes, and help to ensure continuous rejuvenation of the software as it evolves iteratively[citation needed].
The "global process" that is made by the many stakeholders (e.g. developers, users, their managers) has many feedback loops. The evolution speed is a function of the feedback loop structure and other characteristics of the global system. Process simulation techniques, such as system dynamics can be useful in understanding and managing such global process.
Software evolution is not likely to be Darwinian, Lamarckian or Baldwinian, but an important phenomenon on its own. Given the increasing dependence on software at all levels of society and economy, the successful evolution of software is becoming increasingly critical. This is an important topic of research that hasn't received much attention.
The evolution of software, because of its rapid path in comparison to other man-made entities, was seen by Lehman as the "fruit fly" of the study of the evolution of artificial systems.
See also
[edit]References
[edit]- ^ Fred Brooks, The Mythical Man-Month. Addison-Wesley, 1975 & 1995. ISBN 0-201-00650-2 & ISBN 0-201-83595-9.
- ^ aeddy; ref: Understanding Open Source Software Evolution Walt Scacchi Institute for Software Research
- ^ Bennett, K. H.; Rajlich, V. T.; Mazrul, R. Mohamad (1995). "Legacy System: Coping with success". IEEE Software. pp. 19–23.
- ^ Trung Hung Vo (2007), Software Maintenance
- ^ Lientz, B.P. and Swanson, E.B., Software Maintenance Management, A Study Of The Maintenance Of Computer Application Software In 487 Data Processing Organizations. Addison-Wesley, Reading MA, 1980. ISBN 0-201-04205-3
- ^ ISO/IEC 14764:2006, 2006.
- ^ Paul Warren; Cornelia Boldyreff; Malcolm Munro (1999). "The evolution of websites". Proceedings of the Seventh International Workshop on Program Comprehension. IEEE. pp. 178–185.
- ^ Ned Chapin; Joanne E Hale; Khaled Md Khan; Juan F Ramil; Wui-Gee Tan (2001). "Types of software evolution and software maintenance". Journal of Software Maintenance and Evolution: Research and Practice. 13 (1): 3–30. doi:10.1002/smr.220.
- ^ Barbara Kitchenham; Guilherme Travassos; Anneliese von Mayrhauser; Frank Niessink; Norman Schneidewind; Janice Singer; Shingo Takada; Risto Vehvilainen; Hongji Yang (1999). "Towards an ontology of software maintenance". Journal of Software Maintenance: Research and Practice. 11 (6): 365–389. doi:10.1002/(SICI)1096-908X(199911/12)11:6<365::AID-SMR200>3.0.CO;2-W. hdl:10945/55140.
- ^ Dirk Deridder (2002). "A concept-oriented approach to support software maintenance and reuse activities". Proceedings of the 5th Joint Conference on Knowledge Based Software Engineering.
- ^ Aurora Vizcaíno; Jesús Favela; Mario Piattini (2003). "A multi-agent system for knowledge management in software maintenance". Knowledge-Based Intelligent Information and Engineering Systems. Springer. pp. 415–421.
- ^ Márcio Dias; Nicolas Anquetil; Káthia de Oliveira (2003). "Organizing the knowledge used in software maintenance". Journal of Universal Computer Science. 9 (7): 641–658.
- ^ Francisco Ruiz; Aurora Vizcaíno; Mario Piattini; Félix García (2004). "An ontology for the management of software maintenance projects". International Journal of Software Engineering and Knowledge Engineering. 14 (3): 323–349. doi:10.1142/S0218194004001646. S2CID 15592498.
- ^ a b c d e f Bennett, Keith; Rajlich, Václav (2000-07-01). "A Staged Model for the Software Life Cycle" (PDF). Computer. 33 (7). IEEE Computer Society: 66–71. doi:10.1109/2.869374. S2CID 7547412. Retrieved 2020-05-23.
- ^ a b c d e Lehman, M. M. (1980). "On Understanding Laws, Evolution, and Conservation in the Large-Program Life Cycle". Journal of Systems and Software. 1: 213–221. doi:10.1016/0164-1212(79)90022-0.
- ^ Lehman's laws of software evolution
- ^ Narendra, Nanjangud (29 April 2011). "Software Evolution in Agile Development". InfoQ. Retrieved 19 March 2016.
Further reading
[edit]- Andrea Capiluppi, Jesus M.Gonzalez Barahona, Israel Herraiz, Gregorio Robles, Adapting the "Staged Model for Software Evolution" to FLOSS
- Mark C. Paulk, A History of the Capability Maturity Model Software
Software evolution
View on GrokipediaIntroduction and Overview
Definition and Scope
Software evolution refers to the ongoing process of modifying and adapting a software system after its initial development and deployment to ensure it remains useful, effective, and aligned with changing requirements, environments, or stakeholder needs. This process encompasses activities such as correcting defects, enhancing functionality, refactoring code for better maintainability, and adapting to new hardware or regulatory constraints. As articulated in foundational work, evolution is an intrinsic, feedback-driven property of software systems, particularly those that model real-world phenomena (A-type programs), where continual change is necessitated by environmental pressures to prevent obsolescence.[2] The scope of software evolution primarily covers the post-development phases of the software lifecycle, from initial release through ongoing maintenance to eventual retirement or replacement. It distinguishes itself from the one-time, upfront development efforts by emphasizing iterative, long-term adaptation rather than static creation. This includes managing the system's growth in complexity over time, often guided by principles such as those in Lehman's Laws of Evolution, which highlight the inevitability and patterns of such changes. Evolution thus serves as a critical subset of lifecycle management, assuming foundational software engineering practices like requirements analysis and design are already in place.[2] The importance of software evolution lies in its role in extending system longevity, mitigating risks of technical debt, and enabling organizational agility in dynamic markets. Effective evolution practices reduce the total cost of ownership by proactively addressing changes, thereby avoiding costly overhauls or failures. Studies indicate that around 60% of the total lifecycle cost for a software system is devoted to evolution-related activities, underscoring the economic imperative for disciplined approaches in this area.[3]Historical Context
The recognition of challenges in software reliability emerged in the 1960s amid the "software crisis," characterized by escalating costs, delays, and failures in large-scale projects like the IBM OS/360 operating system, which prompted a shift toward structured approaches to maintenance and long-term system sustainability.[6] This crisis was formally addressed at the 1968 NATO Conference on Software Engineering in Garmisch, Germany, where experts coined the term "software crisis" and emphasized the need for disciplined practices to manage software beyond initial development.[7] The follow-up 1969 NATO Conference in Rome further highlighted reliability issues, advocating for software engineering principles to mitigate ongoing problems in evolving systems.[8] In the 1970s, software maintenance emerged as a distinct discipline, driven by the realization that post-deployment changes constituted the majority of software lifecycle costs, around 60% of total expenses for long-lived systems.[3] This period saw the formalization of maintenance practices within software engineering, with early studies quantifying the need for ongoing adaptations to hardware, environments, and requirements. A pivotal milestone came in 1980 with Meir M. Lehman's publication of the initial "laws of software evolution," which described programs as living entities requiring continuous adaptation to remain viable, based on empirical analysis of OS/360 releases over two decades.[2] The 1990s integrated these concepts with object-oriented paradigms, where languages like C++ and Java facilitated modular designs that supported easier evolution through inheritance and encapsulation, reducing the rigidity of procedural codebases.[9] The terminology evolved from "software maintenance," which implied reactive fixes in the 1970s and 1980s, to "software evolution" in the 1990s, emphasizing proactive growth, adaptation, and enhancement to align with dynamic user needs and technological advances.[10] The open-source movement in the 2000s amplified this shift, enabling collaborative evolution through distributed version control like Git (introduced in 2005), which democratized maintenance and accelerated changes in projects such as the Linux kernel, where thousands of contributors iteratively refined the codebase.[11] By the 2010s, the rise of continuous integration and continuous delivery (CI/CD) practices transformed evolution into an automated, frequent process; pipelines in tools like Jenkins allowed daily or more frequent releases, reducing integration risks and supporting agile methodologies in industrial settings.[12] In the 2020s, artificial intelligence has been incorporated into software evolution, particularly through self-healing systems that autonomously detect, diagnose, and repair faults using machine learning models, as seen in AIOps platforms that predict and mitigate issues in cloud-native environments to minimize downtime.[13] These advancements build on earlier frameworks by enabling predictive maintenance and adaptive refactoring, marking a transition toward more autonomous software lifecycles.[14]Core Concepts
Software Lifecycle Integration
Software evolution integrates seamlessly into the software development lifecycle (SDLC), which encompasses phases such as requirements gathering, design, implementation, testing, deployment, and post-deployment maintenance to ensure systems remain viable over time.[15] In this framework, evolution primarily manifests during the maintenance phase following initial deployment, where ongoing modifications address changing requirements, environmental shifts, and technological advancements, often comprising the longest and most resource-intensive portion of the lifecycle for long-lived systems.[16] This integration emphasizes designing systems from the outset to accommodate future changes, thereby minimizing costs and disruptions across the entire SDLC.[17] Key integration points occur post-initial release, where evolution overlaps with operations and maintenance activities, enabling systems to adapt without full redevelopment.[18] In linear models like Waterfall, evolution functions as an add-on phase after deployment, treating changes as sequential extensions that can lead to higher costs if not anticipated early.[19] Conversely, iterative models embed evolution inherently through repeated cycles of development and refinement, allowing incremental updates that align closely with evolving user needs and reduce the separation between creation and adaptation.[19] These approaches highlight how evolvability influences lifecycle efficiency, with maintenance serving as the primary arena for evolutionary activities such as corrective and adaptive updates.[20] To assess integration effectiveness, evolvability metrics evaluate a system's readiness for change, focusing on structural qualities that facilitate ongoing evolution. Modularity index, which quantifies the degree of system decomposition into independent components, supports analyzability and extensibility by promoting reusable modules that ease future modifications.[17] Coupling measures, assessing interdependencies between modules, indicate potential ripple effects of changes; lower coupling enhances changeability and reduces maintenance overhead.[16] These metrics, derived from standards like ISO/IEC 9126, guide design decisions to embed evolvability early in the SDLC, ensuring long-term adaptability without excessive refactoring.[17] A prominent case of evolutionary integration involves legacy COBOL systems in banking, where monolithic applications handling 95% of ATM transactions require gradual incorporation into modern SDLC practices to sustain operations amid digital transformation.[21] Banks achieve this by assessing COBOL architectures for decomposition, integrating via RESTful APIs to link with contemporary deployment pipelines, and incrementally migrating components to languages like Java, thereby aligning legacy evolution with agile post-deployment phases while preserving compliance and reliability.[21] This approach exemplifies how evolvability metrics, such as coupling analysis, inform targeted modernizations that extend system lifespans within the broader SDLC.[22]Evolution vs. Maintenance
Software maintenance is defined as the modification of a software product after delivery to correct faults, improve performance or other attributes, or adapt to a changed environment.[23] This primarily preserves existing functionality, such as through bug fixes that address defects without altering core capabilities. In contrast, software evolution encompasses proactive transformations to introduce new capabilities, often involving architectural refactoring to accommodate emerging requirements or enhance scalability.[2] Pioneered in Meir Lehman's foundational work, evolution views software as a dynamic entity that must continuously adapt to its operational environment to remain viable, going beyond mere preservation to foster growth and innovation.[24] Both maintenance and evolution necessitate code changes, creating overlaps in activities like adaptation to environmental shifts; however, distinctions arise in intent and scope. Maintenance is largely reactive and event-driven, categorized by IEEE standards into corrective (fault resolution), adaptive (environmental alignment), perfective (performance enhancements), and preventive (future-proofing) modes, with a focus on stability and minimal disruption.[25] Evolution, while incorporating perfective elements, is forward-oriented and requirements-driven, emphasizing growth in complexity and value through evolutionary drivers like user feedback loops and architectural redesign, as outlined in taxonomies that differentiate it from routine servicing.[26] This taxonomy highlights how evolution extends maintenance by addressing long-term viability rather than isolated fixes. The implications of these differences are profound for software design and management. Maintenance prioritizes stability, often through modular structures that facilitate quick patches without risking system integrity. Evolution, however, demands forward-thinking architectures, such as extensible frameworks that support incremental enhancements and complexity management, to prevent degradation over time.[27] Neglecting evolutionary aspects can lead to technical debt, where reactive maintenance alone fails to align software with business goals. Empirical evidence underscores these dynamics: studies consistently show that maintenance activities consume 60-90% of total software lifecycle costs, reflecting the resource intensity of post-delivery modifications.[28] Conversely, evolutionary changes—particularly enhancements—drive the majority of long-term value in enterprise systems by enabling adaptability and competitiveness in legacy environments.[29]Maintenance Categories
Corrective and Adaptive Maintenance
Corrective maintenance involves the identification and resolution of defects or errors in software to restore it to its intended functionality. This type of maintenance addresses faults that arise during operation, such as bugs causing crashes or incorrect outputs, and is typically reactive in nature. According to IEEE standards, corrective maintenance specifically targets software faults detected post-deployment. The processes for corrective maintenance begin with fault detection, often through user reports, automated monitoring, or testing suites that identify anomalies in software behavior. Root cause analysis follows, employing techniques like debugging and log examination to trace errors to their origins, ensuring fixes address underlying issues rather than symptoms. Regression testing is then conducted to verify that corrections do not introduce new defects, re-executing prior tests on modified code to maintain system integrity.[30] Tools supporting corrective maintenance include debuggers such as GDB, which allow developers to step through code execution, inspect variables, and set breakpoints for interactive fault diagnosis in languages like C and C++. Static analyzers, like Coverity, scan source code without execution to detect potential defects, such as memory leaks or null pointer dereferences, enhancing early identification during maintenance phases.[31][32] A key metric for corrective maintenance is defect density, calculated as the number of defects per thousand lines of code (KLOC), providing a measure of software quality and the scale of maintenance effort required. For instance, high-quality enterprise systems typically exhibit 1 to 3 defects per KLOC, while critical software aims for less than 0.1.[33] Adaptive maintenance entails modifying software to accommodate changes in its external environment, ensuring continued compatibility and functionality without altering core features. This includes adjustments for evolving hardware, operating systems, or regulatory requirements, distinguishing it from internal enhancements. Examples of adaptive maintenance include porting applications to new platforms, such as migrating from on-premises servers to cloud environments like AWS during infrastructure upgrades, or updating software to support newer OS versions like transitioning from Windows 10 to Windows 11. Compliance with regulatory updates, such as adapting data handling processes to meet GDPR requirements enacted in 2018, often necessitates weaving privacy controls into existing designs, as demonstrated in case studies where sequence diagrams were evolved to enforce data protection principles like accuracy and transparency.[34][35][36] Processes for adaptive maintenance involve assessing environmental changes, such as API updates or hardware specifications, followed by targeted modifications like recompiling code or integrating new libraries. Tools like configuration management systems (e.g., Git) facilitate version control during these adaptations, while automated testing ensures compatibility across environments. In regulatory cases, approaches like SoCo automate the injection of security controls into design artifacts, processing diagrams at rates of 10 messages per second with 81.5% accuracy.[35] Effort estimation for adaptive maintenance often uses function points, a measure of software functionality that accounts for inputs, outputs, and interfaces affected by changes. Maintenance function points (MFP) incorporate a maintenance impact ratio (MIR) to scale effort based on the proportion of modified components, with empirical data showing improved prediction accuracy (R² = 0.57) when adjusting for changed data elements.[37] A primary challenge in adaptive maintenance is the unpredictability of external changes, which can lead to scope creep by expanding the project beyond initial adaptations into unrelated enhancements, straining resources and timelines. For example, regulatory shifts like GDPR enforcement required extensive manual verification (up to 95 hours in studied cases), highlighting risks of overlapping modifications and human judgment biases in dynamic environments.[35]Perfective and Preventive Maintenance
Perfective maintenance refers to modifications made to software systems to incorporate new user requirements, enhance functionality, or improve performance based on feedback.[24] Historical surveys, such as Lientz and Swanson (1980), indicate that perfective and adaptive maintenance combined account for around 75% of efforts, though more recent analyses suggest enhancements continue to form a majority (around 60%) of maintenance activities.[24][38] This type of maintenance typically accounts for a substantial portion of overall maintenance efforts, as it addresses evolving user needs to increase satisfaction and utility. Processes involved include feature prioritization, where requests are evaluated against business value and user impact, and usability testing to validate improvements in interface and workflow efficiency. For instance, in a student registration system, perfective maintenance might involve adding a feature to automatically block enrollments for students with outstanding holds, ensuring compliance and smoother operations.[24] Another common example is redesigning the user interface of a mobile application to enhance navigation and accessibility, directly responding to user-reported pain points.[39] Metrics for perfective maintenance often focus on enhancement size, such as the number of lines of code added or modified, to gauge the scope of improvements implemented.[40] Preventive maintenance, in contrast, encompasses proactive restructuring of code to avert future issues, thereby improving long-term maintainability without altering external behavior.[24] This involves techniques like refactoring to increase modularity, detecting code smells—such as overly complex methods or duplicated logic—and reducing technical debt, which represents immature artifacts that inflate future rework efforts.[41] By addressing these during routine servicing, preventive measures include minor enhancements like applying patches or wrappers to bolster integrity, often at relatively low cost with targeted expertise.[24] Tools supporting these activities include refactoring features in integrated development environments (IDEs) like IntelliJ IDEA, which automate restructuring for better modularity, and static analysis platforms such as SonarQube, which track technical debt through metrics like duplication rates and vulnerability counts to prioritize interventions.[42] Studies indicate that unmanaged technical debt can consume up to 40% of IT budgets, and effective management through preventive maintenance can significantly reduce these costs.[43]Theoretical Models
Lehman's Laws of Evolution
Meir M. Lehman's laws of software evolution emerged from empirical analyses of large-scale software systems, notably IBM's OS/360 operating system, with initial formulations in 1974 and progressive refinements through the 1980s and 1990s. These laws describe predictable patterns in the evolution of E-type programs—software developed to address real-world problems in dynamic environments—based on observations of maintenance and growth over multiple system releases. By 1996, Lehman had articulated eight laws, providing foundational principles for understanding software longevity and change dynamics. The laws are stated as follows, with interpretations drawn from their original contexts:- Law I: Continuing Change. "An E-type program that is used must be continually adapted else it becomes progressively less satisfactory." This underscores the necessity of ongoing modifications to align software with evolving external realities, such as user needs or environmental shifts, to avoid obsolescence.
- Law II: Increasing Complexity. "As a program is evolved its complexity increases unless work is done to maintain or reduce it." Changes inherently degrade structure, akin to entropy, requiring deliberate refactoring to counteract rising complexity.
- Law III: Self Regulation. "The program evolution process is self regulating with close to normal distribution of measures of product and process attributes." Evolution exhibits stable, statistically predictable trends due to organizational feedback mechanisms that constrain variability.
- Law IV: Conservation of Organizational Stability. "The average effective global activity rate on an evolving system is invariant over the product life time." Despite efforts to accelerate development, the overall rate of change remains constant, limited by team capacity and process constraints.
- Law V: Conservation of Familiarity. "During the active life of an evolving program, the content of successive releases is statistically invariant." The scope of changes per release stabilizes as developers' familiarity with the codebase limits the pace of innovation.
- Law VI: Continuing Growth. "Functional content of a program must be continually increased to maintain user satisfaction over its lifetime." Beyond mere adaptation, new features are required to meet expanding user expectations and sustain utility.
- Law VII: Declining Quality. "E-type programs will be perceived as of declining quality unless rigorously maintained and adapted to a changing operational environment." Accumulated changes erode reliability and performance without proactive quality assurance.
- Law VIII: Feedback System. "E-type Programming Processes constitute Multi-loop, Multi-level Feedback systems and must be treated as such to be successfully modified or improved." Evolution is governed by interconnected feedback loops involving users, developers, and the environment, necessitating holistic process interventions.
