AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Using Monads to Control the Side Effects
Monads are a way of saying I've got this context in which we could access the network, right? And take take an example of running two HTTP requests. That's obviously got the side effect of networking. So I need to deal with the fact that either of those requests may fail. The monad is the tool to make that easy from the programmer. It's almost a developer experience tool for making tracking side effects pleasant.