
Behold the Power of Laziness With Functional Programming
To finish the exploration of functional programming with the Checkoid internals, let's combine a synchronous Validator with asynchronous one with a lazy Promise... that is also a Monad.
Full-stack web developer at marmelab, loves functional programming and JavaScript.
To finish the exploration of functional programming with the Checkoid internals, let's combine a synchronous Validator with asynchronous one with a lazy Promise... that is also a Monad.
In this new functional programming tutorial, I'll explain how Functors can help us assemble validator functions to validate complex data structures like objects.
Come and see monoids in real-life, in this tutorial explaining how to combine validator functions like lego pieces.
It is a bad practice to chain one monad with a monad of another type. Read on to understand why, and how to chain monads the right way.
`Functors` and `Monads` may sound frightening, they are powerful concepts that can help developers on a day-to-day basis.
What do number addition, string concatenation, array concatenation, and function composition have in common? They are all monoids, and they have very interesting properties.
This gentle introduction to functional programming explains pure functions, currying, and composition. Easy peasy!