Pattern matching trouble in ExUnit

Reading Time: 2 minutes TL;DR I found an interesting bug, not in the implementation code, but in the ExUnit test. The bug was related to Kernel.match? method. I will explain the root cause of…
The post Pattern matching trouble in ExUnit appeared fir…

How To Log Invalid HTTP Request In Phoenix

Reading Time: 2 minutes The Problem Our service built with Phoenix framework logged the following message: The source that recorded this error was the plug_cowboy function early_error. Logs are integrated with Datadog, otherwise, we…
The post How To…

How To Use Elixir Gettext As A Team

Reading Time: 2 minutes TL;DR You are working on a Phoenix application that uses Elixir Gettext for translations. As all team members are doing changes on translation files, you have a lot of merging…
The post How To Use Elixir Gettext As A Team app…

Guardians Of The Elixir Functions

Reading Time: 2 minutes TL;DR In the previous post, we introduced function overloading in Elixir, which is basically applied pattern matching to function input arguments. As pattern matching could not include logical operators, guards…
The post Guar…