abreujp

abreujp

I’ve published a new article in my Elixir learning series on dev.to exploring error handling with tagged tuples - the {:ok, value} / {:error, reason} pattern that’s idiomatic to Elixir.

The article covers:

  • Understanding the tagged tuple convention and when to use it
  • Returning descriptive results from your functions
  • Handling errors at the call site with case and pattern matching
  • Chaining operations cleanly with with and the else clause
  • The bang convention (!) and its role in the ecosystem
  • Practical patterns: validation, form handling, and batch processing

With complete working examples you can copy into IEx, you’ll learn how to treat errors as values and write code that handles failure paths explicitly.
Check it out:

Where Next? Top

Trending in Blog Posts Top

New
davejs
Hi everyone, I’ve been building BetterTyping (https://bettertyping.org) on and off since 2021. It’s a free typing game: practice alone, ...
New
zorn
:pencil: I captured some notes and suggestions from my own job hunt this summer to help others looking for an <span class="hashtag-icon-p...
New
T0ha666
I run AI coding agents on a Docker Swarm cluster, and one afternoon a 40-minute agent run exited 0 and lost 100% of its output. The poll...
New
tomazbracic
A post on how to prepare AWS IoT Core for Provisioning a Nerves gateway on AWS IoT Core as Fleet provisioning with / by Claim. Hope it h...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
261 13183 112
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
PJUllrich
On November 23, 2026, an unauthorized third party exploited a vulnerability in hex.pm (CVE-2026-129514, CVSS 10.0) that let them run comm...
New
charlenopires
Hi everyone :waving_hand: I’ve been working on PhiaUI, an open-source UI component library for Phoenix LiveView, and I wanted to share i...
New
akoutmos
@hugobarauna, Dr. Dimitrios Koutmos (my brother) and I (Alex Koutmos) have been hard at work on writing a book on how you can use Elixir ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews