Fundamental theorem of software engineering
||The topic of this article may not meet Wikipedia's general notability guideline. (November 2011)|
"We can solve any problem by introducing an extra level of indirection."
The term is facetious, in the sense that it does not describe an actual theorem that can be proven, and the problems it solves are not fundamental. Rather, it is general a 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. 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.
- Abrahams and Gurtovoy, C++ Template Metaprogramming, 2005, Addison Wesley, p13.
- Wakeman, I.; Crowcroft, J.; Wang, Z.; Sirovica, D. (Jan. 1992). "Layering considered harmful". IEEE Network: pp. 20–24.