Monad Design Pattern (C#)
Raw Coding
Explanation of Monad using C#. Monads have 2 sides to them: 1. storing a value 2. applying functions to stored value. This gives us function composition between functions that return a monad value and a function that takes the contained value within the monad. The function application mechanism of the monad knows how to pass the stored value in to the supplied function. This pattern brings automatic handling of nulls/awaits/try or any other effect in between function composition. The end result is a clear problem that you are trying to solve free of edge cases.
more resource Monads: https://www.youtube.com/watch?v=ZhuHCtR3xq8 https://www.youtube.com/watch?v=gHiyzctYqZ0
Playlist: https://www.youtube.com/playlist?list=PLOeFnOV9YBa4ary9fvCULLn7ohNKR6Ees Source: https://github.com/raw-coding-youtube/design-patterns
Shop π https://shop.raw-coding.dev Twitch π₯ https://www.twitch.tv/raw_coding Discord π¬ https://discord.gg/R9A8yq4 Github ποΈ https://github.com/T0shik Twitter π£ https://twitter.com/anton_t0shik Instagram π€³ https://www.instagram.com/anton_t0shik/
Patreon π https://www.patreon.com/raw_coding Donate π https://streamelements.com/raw_coding/tip Linode π https://www.linode.com/rawcodingβ
#csharp #monad #designpatterns ... https://www.youtube.com/watch?v=eSiTfQTxr10
111464814 Bytes