Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the Monad design pattern in C# through this 20-minute video tutorial. Dive into the two key aspects of Monads: storing a value and applying functions to that stored value. Learn how this pattern enables function composition between functions returning a monad value and those taking the contained value within the monad. Discover how the monad's function application mechanism handles passing stored values to supplied functions, resulting in automatic handling of nulls, awaits, try statements, or other effects during function composition. Gain insights into creating cleaner code by separating core problem-solving logic from edge case handling. Follow along as the tutorial covers introduction, implementation, gluing, binding, and rules of the Monad pattern, providing a comprehensive understanding of this powerful concept in C# programming.