Methods Don't Succeed our Fail: they Have Outcomes
March 01, 2024
On Matstodon, Peter Solnica posted some Ruby pattern-matching code, asking what Rails devs think about it. While pattern matching is interesting, I think I still prefer if
statements based on return objects. But, I also think the “success/failure” dichotomy is unnecessary, confusing, and often a modeling error.