concept doom in category c#

appears as: doom
Functional Programming in C#: How to write better C# code

This is an excerpt from Manning's book Functional Programming in C#: How to write better C# code.

In this section, I’ll start by showing how using HOFs in some cases leads to deeply nested callbacks, a problem commonly referred to as “callback hell,” or “the pyramid of doom.” I’ll use DB access as the specific scenario to illustrate this problem and show how you can leverage the LINQ query pattern to create flat, monadic workflows instead.

11.3.2. A recipe against the pyramid of doom

It turns out that one way we can look at Bind is as a recipe against the pyramid of doom. For instance, you may remember how in chapter 6 we used Bind to combine several Either-returning functions: