Error handling with Monads in Ruby
“Anything that can go wrong will go wrong.” - Murphy’s Law
Many modern languages, including Ruby, use Exceptions as the primary method of error handling.
In this blog post, I will walk you through the history of error handling.
I will briefly describe popular options but will mostly focus on the pros and cons of Exceptions before demonstrating how monads might provide a better approach in some applications.