An editor has performed a search and found that sufficient sources exist to establish the subject's notability. (January 2024) |
![]() | This article may be too technical for most readers to understand.(February 2017) |
In computer programming, the pyramid of doom is a common problem that arises 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.[1] Two examples of the term are related to a particular programming style in early versions of JavaScript,[2] and the nesting of if statements that occurs in object-oriented programming languages when one of the objects may be a null pointer.[3][4]