The test of software development theories: the cost of change
From structured programming to Conway's Law, software theories make promises about how much work it takes to understand and change a system. Agents that write code make writing cheap, so the centre of gravity of the old debates shifts to understanding and change.
How this was made: this essay was written by the author's own research and analysis system from the cited sources; Zoltán Varga edited the topic, structure and final text. The cited works are the source of its factual claims.
In the natural sciences, a theory is expected to predict what will happen and thereby name the observation that would refute it. Software development theories are rarely read this way. Structured programming, information hiding, and Conway's Law mostly live on in teams as good advice, and it is hard to say when a piece of good advice has been wrong. The questions of the thinkers discussed in the first part grew into schools, and the schools made claims about what happens to a system if it is built one way or another. I take these claims seriously as predictions, because with AI agents that write code, several old debates are for the first time producing enough observations to settle them.
Proof or experiment: what verifies the program
The first part introduced structured programming from the perspective of Edsger W. Dijkstra's 1968 letter 1, but the intention behind the theory was more ambitious than banishing a single statement. According to Robert C. Martin's book Clean Architecture, Dijkstra wanted programmers to work like mathematicians: use proven structures and prove for themselves that the code connecting them is correct. In the course of this work, he discovered that certain uses of the jump statement prevent the module from being broken down into ever smaller units, without which proof is impossible, while the other uses correspond to branching and looping. Corrado Böhm and Giuseppe Jacopini had proved two years earlier that every program can be built from sequence, branching, and iteration, and Martin considers this coincidence the essence of the discovery: the smallest set from which every program can be built is exactly the one that makes the module provable 2.
The theory thus predicted two things. One was that a program restricted to the three structures would remain comprehensible when broken into parts; the other was that programmers would also prove these parts. The first prediction was fulfilled at the level of languages, the second hardly at all in everyday practice. Martin fills this gap with a different concept of evidence. According to Dijkstra's famous saying, a test can show the presence of a bug, never its absence; Martin argues that software resembles the natural sciences in this, where a theory is confirmed by experiment, without final proof. Seen from the formal school, to which the first part linked Tony Hoare's axioms 3 and Leslie Lamport's event ordering 4, the weakness of experiment is that it covers only the cases tried, and the rare interleavings of a concurrent system are exactly the ones missing from these.
What proof delivers is shown by Gerwin Klein and colleagues' 2009 paper, seL4: Formal Verification of an OS Kernel. The authors verified the functional correctness of a complete, general-purpose operating system kernel with a machine-checked proof, from the abstract specification down to the C implementation, to their knowledge for the first time, and they call full formal verification the only known way to guarantee that a system is free of programming errors. The verified kernel comprises 8,700 lines of C and 600 lines of assembly, and the proof assumes the correctness of the compiler, the assembly code, and the hardware 5. Full certainty is thus achievable, for a few thousand lines of code and under explicitly stated assumptions.
In John Ousterhout's book A Philosophy of Software Design, a third aspect appears: in Ousterhout's view, a module interface described in natural language is probably easier for the developer to understand than one written in a formal specification language 6. The debate is therefore about three costs. Proof is expensive and complete, testing is cheap and partial, and prose description is easy to understand and imprecise. Which is worth it, and when, would be settled if teams tracked, per system component, how many defects got past each verification method and what it cost to catch them. Agents upset this balance, because producing both tests and formal descriptions has become cheaper, while the amount of code to be verified is growing.
Information hiding: the module as a hidden decision
David Parnas's theory is the most clearly formulated prediction in the field. Vlad Khononov's book Balancing Coupling in Software Design cites Parnas's personal communication about the experience from which the principle emerged: work was poorly divided into modules, the module interfaces were very complex, and a change almost always affected many modules. According to the principle proposed in 1971, a good module hides a decision, and if the decision has to be revised, the change affects only one module, the one that hides it 7. Steve McConnell's handbook Code Complete links the principle to Parnas's 1972 article, On the Criteria to Be Used in Decomposing Systems Into Modules, and describes the hidden decision as a secret: for example an area expected to change, a file format, or the implementation of a data type 8. The article's abstract also names the cost of the principle: if the module is implemented in the usual way as subroutines, the new decomposition is in most cases less efficient, and Parnas outlines a different implementation method for this 9. Ousterhout adds, from the side of understanding, that hiding simplifies the interface, thereby reducing the cognitive load on the developer using the module 6.
In favour of the theory is perhaps the profession's most famous retraction. In the 1995 anniversary edition of his book The Mythical Man-Month, Fred Brooks writes that in the original volume he had called Parnas's approach a recipe for disaster, and that Parnas was right about this 10. Brooks preserves the counter-argument even in the retraction. The other method, which he associates with Harlan Mills, ensures that the programmer, knowing the other side of the interface, knows exactly what the interface means, and hiding this meaning leads to system-level errors. He considers Parnas's method better because it is robust under change 10. McConnell cites Barry Boehm's finding that information hiding is an effective way of eliminating rework, especially in incremental, high-change environments 8.
The test of the theory can be stated simply: when a decision is changed, how many modules must be touched. With the agent, this test runs daily. The agent uses the knowledge that the interface and the surrounding code reveal. Where the interface is precise, the generated code stops at the boundary. Where it is imprecise, Brooks's counter-argument applies, and the code builds on an assumption that the module owner never promised. I therefore regard information hiding as the theory whose stakes have grown most with agents.
Essential difficulty: how far the improvement of tools reaches
Brooks's other theory appeared in the first part as a prediction: no single innovation will bring a tenfold improvement within a decade 11. The prediction is based on a distinction that David Farley's book Modern Software Engineering summarises as follows: essential complexity arises from the task to be solved, while accidental complexity arises from everything that the use of the computer forces as a side effect 12. In the anniversary edition, Brooks also draws the consequence. Most of the productivity improvement up to then had come from eliminating accidental difficulties, such as cumbersome machine languages and slow batch processing; little remains of such easy gains, and for radical progress, one must attack the essential difficulty, the creation of complex conceptual structures 10.
The theory therefore tells us where to look for the benefit of a new tool. If the coding agent accelerates the accidental part, the gain is real and limited, and in the remaining work the share of the conceptual part increases. If it also takes over some of the essential part, Brooks's thesis is refuted. Existing measurements show only one half of the question. Sida Peng and colleagues' 2023 preprint, The Impact of AI on Developer Productivity: Evidence from GitHub Copilot, describes a controlled experiment in which the group using the coding assistant completed writing a JavaScript HTTP server 55.8 per cent faster than the control group 13. Among the authors of the preprint are researchers from the company developing the product under study; the preprint does not mention an independent replication. The experiment measured a single, ready-made task, that is, the work in which the developer no longer has to decide what to build. The debate would be settled if studies measured separately from this the time it takes the team to decide what the system must do. I consider Brooks's thesis valid as long as there is no measurement broken down in this way.
Conway's Law: the organisation's imprint on the system
According to Gene Kim and his co-authors in The DevOps Handbook, Melvin Conway observed in 1968 at a contract research organisation that five of eight people were assigned to the COBOL compiler and three to the ALGOL compiler, and the resulting COBOL compiler ran in five passes while the ALGOL compiler ran in three. From this emerged the law: an organisation designing a system produces a design that is a copy of its own communication structure, and the larger the organisation, the less flexible it is, and the stronger the phenomenon 14. Marianne Bellotti adds in her book Kill It with Fire that Brooks named the proposition Conway's Law when he adopted it in his book published in 1975 15.
Bellotti's critique concerns the status of the theory. According to her observation, engineers typically believe the law only after the fact: few attribute a successful architecture to their organisation's structure, whereas they readily accept it as an explanation for a flawed product 15. A proposition cited only after failure functions as an explanation but has not yet passed the test as a prediction. Bellotti also reminds us that Conway's original paper, How Do Committees Invent? 16, contained more nuanced observations. Individual incentives also play a role in design decisions, and minor adjustments and rework cast an unfavourable light on the organisation, making reorganisation and complete rewriting appear more attractive, even though they are more expensive and often less effective 15.
The law would be settled by a verifiable claim made in advance: the team predicts from its organisational chart where the system's interface points will be, then compares this with the system as built. Agents provide a natural experiment for this. Imagine an organisation where the same agent performs part of the work of three teams, using a common set of instructions. If Conway's thesis is truly about communication, then the system's structure will follow who writes and who approves the agent's instructions and changes. If the boundaries remain on the old team lines, the law describes the outline of responsibility rather than communication.
Plan or evolution, craft or industry
The agile school, whose practices were introduced in the first part through Kent Beck's work routine, is the most widely tested theory in the field. According to Torgeir Dingsøyr, Davide Falessi and Ken Power in their paper Agile Development at Scale: The Next Frontier, the methods focus on feedback and change, Scrum is the most common development framework in most countries, and methods originally tailored for small, co-located teams of five to nine people are now applied in projects involving dozens of teams and hundreds of developers, even in critical systems. The authors also note that the grassroots movement of practising developers was taken over by large international consulting firms, which prescribe it to their clients 17. Widespread adoption speaks in favour of the theory, but its evidentiary power is limited because effectiveness cannot be inferred from the use of a prescribed method.
What divides the proponents of planning from those of evolution is how the cost of change develops. If late change is expensive, decisions must be made in advance; if it is cheap, a decision can be postponed until the knowledge it needs is available. This is the point where the two major theories meet. According to Boehm, information hiding is effective precisely in environments that change a lot and are built up gradually 8, and Brooks calls it fitting for the idea of designing for change 10, so the evolutionary way of working draws its strength from good module boundaries. Jie JW Wu's 2023 preprint, An Exploratory Study of V-Model in Building ML-Enabled Software, marks the limit from the other side. According to the author, traditional lifecycle models, including agile ones, run into difficulties in systems that contain machine learning. Based on interviews with practitioners, the features of the V-model, which pairs design with verification, namely decomposition of the system, clear boundaries and consistent verification, suit the collaboration difficulties of such teams, even at the price of extra work 18.
The debate between the craft and industrial views marks the two ends of the same question. In Brooks's vision, a program is assembled and parameterised from prefabricated units much larger than a single statement: subroutines, modules and classes. This removes the sheer volume of statement-level work and the opportunities for error that come with it 10. On the other side stand the tinkering tradition introduced in the first part and the well-known thesis of Peter Naur's paper Programming as Theory Building 19, according to which a program is a theory living in the minds of its makers; such a theory cannot be assembled from ready-made parts. The agent strengthens the arguments of both camps: it produces large units on demand, as the industrial picture requires, while understanding the resulting system remains craft work for the human.
Learned software: examples instead of rules
The idea of learned software, which the first part associated with Andrej Karpathy, puts every previous theory to the test, because it concerns a program whose behaviour no one has written down statement by statement. Structured programming inferred execution from the structure of the text; in a trained model, weights stand in place of the text, and behaviour can be learned only by experiment. Information hiding demands that a module's interface promise what its interior delivers; for a learned component, such a promise can only be made in a probabilistic sense.
The theory predicts that for a growing share of tasks, collecting examples and specifying the goal is cheaper than writing rules. The very way language models work speaks in its favour. Against it speaks the fact that the output of a code-writing model is again conventional program text, which has to be judged by the old theories. This duality is, in my view, what is distinctive about the present situation: the theory of learned software holds for the tool, while the classic theories continue to apply to the product.
The common unit of measurement of the debates is the price of understanding
Behind the debates stands a single quantity: how much work it takes to find out what the system does and what happens to it if it changes. Proof and testing offer two exchange rates for this knowledge, the module boundary determines how large an area it must be acquired over, and the organisation's structure determines how many people it is spread across. The agent supplies code cheaply but does not supply this knowledge with it; therefore, every theory that reduces the price of understanding is worth more with the agent than before, and every theory that only speeded up writing loses significance.
For me, this implies that the introduction of agents makes the old debates measurable, and the organisation learns from it if it records in advance what it expects. A team that tracks the spread of changes, the number of bugs that got through, and the time from decision to finished code both before and after introducing the agent will know from its own data which theory has stood the test in its case. Without measurement, the debate remains at the level of convictions, and the agent's speed appears to vindicate whichever school the team already believed in.
Theories are decided by those who make them testable
A theory is settled when someone builds the system on which it can fail. The fate of software theories is therefore shaped by those who put tools, languages, benchmarks and work routines into the profession's hands, and so determine which predictions can be tested at all. Structured programming became general through the decisions of language designers, the agile method was spread by consulting firms, and the future of learned software depends on who builds it into everyday development, and on what terms. Of all the theories, the one that stays valid is the one that someone turns into a measurable prediction and tests; the conditions for testing are created by the actors, that is, the companies, labs and communities with whom the series continues.
Recommended reading
- The Mythical Man-Month: Essays on Software Engineering (anniversary edition) (Frederick P. Brooks, Jr.). Brooks's anniversary edition, alongside essays on organising large software projects, also shows how an author revisits their own theses after twenty years.
- Balancing Coupling in Software Design (Vlad Khononov). Khononov discusses coupling between modules as a measurable design criterion and links Parnas's principle of information hiding to the concept of abstraction.
- A Philosophy of Software Design (John Ousterhout). Ousterhout's short book makes the reduction of complexity the measure of design, using the concepts of deep module and simple interface.
- Kill It with Fire: Manage Aging Computer Systems (and Future Proof Modern Ones) (Marianne Bellotti). Bellotti describes the modernisation of legacy systems as an organisational task, and reads Conway's original observations more precisely than the popular version.
- Clean Architecture: A Craftsman's Guide to Software Structure and Design (Robert C. Martin). Martin's book arranges programming paradigms from the perspective of possibilities taken away from the programmer, and derives the rules of architecture from this.
Sources
- [1] Edsger W. Dijkstra (1968): Letters to the editor: go to statement considered harmful. Communications of the ACM.
- [2] Robert C. Martin (2017): Clean Architecture: A Craftsman's Guide to Software Structure and Design.
- [3] C. A. R. Hoare (1969): An axiomatic basis for computer programming. Communications of the ACM.
- [4] Leslie Lamport (1978): Time, clocks, and the ordering of events in a distributed system. Communications of the ACM.
- [5] Gerwin Klein, Kevin J. Elphinstone, Gernot A. Heiser, June Andronick et al. (2009): seL4: formal verification of an OS kernel. ACM SIGOPS Symposium on Operating Systems Principles (SOSP).
- [6] John Ousterhout (2018): A Philosophy of Software Design.
- [7] Vlad Khononov (2024): Balancing Coupling in Software Design.
- [8] Steve McConnell (2004): Code Complete: A Practical Handbook of Software Construction (2nd edition).
- [9] David Lorge Parnas (1972): On the criteria to be used in decomposing systems into modules. Communications of the ACM.
- [10] Frederick P. Brooks, Jr. (1995): The Mythical Man-Month: Essays on Software Engineering (anniversary edition).
- [11] Frederick P. Brooks, Jr. (1987): No Silver Bullet: Essence and Accidents of Software Engineering. Computer, 20(4).
- [12] David Farley (2021): Modern Software Engineering: Doing What Works to Build Better Software Faster.
- [13] Sida Peng, Eirini Kalliamvakou, Peter Cihon, Mert Demirer (2023): The Impact of AI on Developer Productivity: Evidence from GitHub Copilot. arXiv (Cornell University).
- [14] Gene Kim, Jez Humble, Patrick Debois, John Willis, Nicole Forsgren (2021): The DevOps Handbook (2nd edition).
- [15] Marianne Bellotti (2021): Kill It with Fire: Manage Aging Computer Systems (and Future Proof Modern Ones).
- [16] Melvin E. Conway (1968): How Do Committees Invent?. Datamation, April 1968.
- [17] Torgeir Dingsøyr, Davide Falessi, Ken Power (2019): Agile Development at Scale: The Next Frontier. IEEE Software, 36(2).
- [18] Jie JW Wu (2023): An Exploratory Study of V-Model in Building ML-Enabled Software: A Systems Engineering Perspective. arXiv.
- [19] Peter Naur (1985): Programming as theory building. Microprocessing and Microprogramming.