GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Modul 9 von 23 · Medien

Callback Hell

Kostas Diakogiannis

Callback Hell

Callback Hell / Pyramid of Doom

If you did something like that, in order to solve the previous exercise you are right. Congrats! However you also understand that this code is very hard to maintain and to debug. We have only 5 nested callbacks and it is already very hard to identify what is inside what. Where something begins, and most importantly, where does it end. 

This situation is called callback hell, or pyramid of doom. Is the pattern when the code we write spreads more horizontally than vertically (similarly to putting multiple nested if statements one inside the other). 

Well thankfully there is a way to perform exactly the same thing but in a syntactically more straightforward and easier to debug way. The promises!

Anleitung

Um im Kurs weiterzukommen, sende einen Versuch dieses Quiz ab. Du kannst ihn nach der letzten Frage absenden.

Zum gewählten Modul

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck