Implementing a peer-to-peer network in Elixir - Part 1: The Server (Ab)using Ecto as Elixir data casting and validation library

Elixir “with” syntax and guard clauses

In this blog post we will take a look at a simple example of refactoring Elixir code using with syntax (called a “special form” in the documentation), and guard clauses.

Elixir “with” syntax and guard clauses

Shameless plug: Check out @elixirstatus' other community project:

Credo, a new static code analysis tool that acts as a code linter, but also focusses on teaching coding practices and code consistency.