Many of us break out in cold sweat on hearing the word monad. We have visions of people in lofty ivory towers, wholly disconnected from reality, looking down on the rest of humanity with disdain. We hear them mumbling academic concepts that have little or no bearing on the real world.
Even though many have used this word in such ways, we hope to show you that it could not be further from the truth. The monad concept is pragmatic and can transform the way we write code. Granted, this term and its relative, functor (which we will also come to know in this chapter), have their origins in category theory’s academic roots. Despite that, we will learn of its practical nature and that there is nothing to fear.