VOOZH about

URL: https://en.wikipedia.org/wiki/Fundamental_theorem_of_software_engineering

⇱ Fundamental theorem of software engineering - Wikipedia


Jump to content
From Wikipedia, the free encyclopedia
General principle for managing complexity through abstraction

The fundamental theorem of software engineering is a humorous observation, credited variously to Roger Needham[1] or David Wheeler,[2] to the effect that:

Any problem in computer science can be solved with another level of indirection.[2]

This is not a theorem in the sense of a mathematical theorem that can be proven; rather, it is a general principle for managing complexity through abstraction.

The theorem is often expanded by the humorous clause "...except for the problem of too many levels of indirection", referring to the fact that too many abstractions may create intrinsic complexity issues of their own. For example, the use of protocol layering in computer networks, which today is ubiquitous, has been criticized in ways that are typical of more general disadvantages of abstraction.[3] Here, the adding of extra levels of indirection may cause higher layers to duplicate the functionality of lower layers, leading to inefficiency; and functionality at one layer may need data present only at another layer, which fundamentally violates the goal of separation into different layers.

Origins

[edit]

Wulf (1981)[1] attributes the observation that all problems in computer science can be solved by "one more layer of indirection" to Roger Needham. This witticism was repeated by other authors, such as Black (1985).[4]: 183  Butler Lampson, in his Turing Award lecture for 1992, repeats the observation but credits it to Needham's Cambridge colleague David Wheeler instead.[2] None of these sources yet refers to the observation by any particular name.

Abrahams (2005),[5] while tracing the observation itself back only as far as Lampson, credits Andrew Koenig with the invention of the name "Fundamental Theorem of Software Engineering".

References

[edit]
  1. ^ a b William A. Wulf; Roy Levin; Samuel P. Harbison (1981). HYDRA/C.mmp: An Experimental Computer System. McGraw-Hill. p. 279. ISBN 0-07-072120-3. Revoking privilege in a capability system is more difficult than in an "access list" system. Roger Needham, however, once observed that "this, like all other problems in Computer Science, can be solved by one more level of indirection."
  2. ^ a b c Butler Lampson (1993-02-17). "Principles for Computer System Design". doi:10.1145/1283920.2159562. Any problem in computer science can be solved with another level of indirection (Wheeler).
  3. ^ I. Wakeman; J. Crowcroft; Z. Wang; D. Sirovica (January 1992). "Is Layering Harmful?". IEEE Network: 20–24. doi:10.1109/65.120719. S2CID 6631446.
  4. ^ Andrew P. Black (1985). "Supporting Distributed Applications: Experience with Eden" (PDF). ACM SIGOPS Operating System Review. 19 (5): 181–193. doi:10.1145/323627.323646. Retrieved 2026-04-02. that universal panacea, an extra level of indirection
  5. ^ Dave Abrahams; Aleksey Gurtovoy (2005). C++ Template Metaprogramming. Addison-Wesley. p. 13. We can solve any problem by introducing an extra level of indirection. —Butler Lampson. Lampson's idea is so universal in programming that Andrew Koenig is fond of calling it "the Fundamental Theorem of Software Engineering" (FTSE).