Posts Tagged - monads

Error handling with Monads in Ruby

“Anything that can go wrong will go wrong.” - Murphy’s Law

Illustration by icons8

Intro

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.

Read More