In this episode we'll see how Ruby lets us retry operations without resorting to a loop.
Tag: failure handling
Episode #234: Warn
Today we talk about how to let client coders know that something might be amiss... the Ruby way.
Episode #188: Fail And Raise
Today's episode is about a semantic convention for error handling that I learned from Jim Weirich.
Episode #166: Not Implemented
Ruby doesn't have a built-in concept of "abstract" classes, but sometimes we want a way to show other programmers when methods are left as an exercise for the implementor. This …
Episode #136: Dead Thread
Concurrent programming is hard, and one of the things that makes it so hard is that a thread can unexpectedly die without giving the programmer any indication. In this episode …
Episode #038: Caller-Specified Fallback
Sometimes it's hard to decide how to handle a failure in a method call. Raise an exception? Return a nil? Log an error? The best choice may differ depending on …
Episode #022: Inline Rescue
Putting a rescue at the end of a line can get you into unexpected trouble. In this episode we'll look at why, as well as at the one case where …