Pyramid of doom (programming)
Appearance
In computer programming, the pyramid of doom is a common problem that arrises when a program uses many levels of nested indentation to control access to a function. It is commonly seen when checking for null pointers or handling callbacks. Two examples of the term are used to a particular programming style in JavaScript,[1] and the nesting of if statements that occurs in dot notation languages when one of the objects may be a null pointer.[2]
References
- ^ "The Pyramid of Doom: A javaScript Style Trap". 27 November 2012.
- ^ Eberhardt, Colin (8 December 2014). "Tearing Down Swift's Optional Pyramid Of Doom".