4 ms·
> The whole point of a lot of code is to have side effects. Depends on the domain. For domains that have to interact with the outside world, there's no choice
by iamwil 5y ago
> The whole point of a lot of code is to have side effects.
Depends on the domain. For domains that have to interact with the outside world, there's no choice to have side-effects, but it can be contained.
It's well known the Monad Tutorials don't do a good job explaining what they are--doesn't mean they're not useful in specific contexts. If you find them lacking, try looking into linear types, algebraic effects, or hexagonal architecture. They're all different approaches to the same problem.