Elixir Streams |> ♻️ Refactoring complex `else` clauses in `with` (an anti-pattern)
Love Elixir’s with
clause… but it can lead to confusing else
statements 😕
In Elixir’s docs, it’s called the “Complex else clauses in with” anti-pattern! ❌
Thankfully, it’s easy to improve that with some refactoring! 🥳 👇
🎥 Elixir Streams |> ♻️ Refactoring complex else
clauses in with
(an anti-pattern)
Read next Thinking Elixir 195: Migrating from Next.js to Phoenix