Category: functional programming


  • The only thing you need to reduce nulls: Monad

    Let’s take an example of calculating the delivery estimate given a username. Letโ€™s walk through that journey together and see how a mysterious functional programming concept called a monad can turn nightmare-level null-checks spaghetti into clean, fluent, and safe code. Note: The code snippets here are simplified for clarity and flowโ€”they might not compile straight…