Handling Environment Variables in Phoenix Easy and Robust Rate Limiting In Elixir

How to Write Elixiry Ruby - Result Object

In Elixir/Erlang, error cases can be easily modeled as tagged tuples: {:error, reason}. But in a more Object-Oriented language like Ruby, it’s hard to model error as a lightweight data structure like Elixir tuples. After some trial-and-error, I’ve found a great way to model errors in OO languages: Result Object.

How to Write Elixiry Ruby - Result Object - Yiming Chen