Custom Compile-Time Warnings in Elixir Using IO.warn/1❗The original blogpost lives on Github where the Elixir formatting is nicer than it is here on Medium❗Sep 19, 2023Sep 19, 2023
Error handling in Elixir: rescue vs catchThe rescue and catch blocks handle different types of errors, to handle all types of errors use catch/2Jun 25, 20202Jun 25, 20202
Custom ExUnit AssertionWriting an assert_invalid macro for ExUnit assertions. Implementation at the bottom.Feb 11, 20201Feb 11, 20201
Tracking Down an ETS-related Memory LeakETS will hold references to large binaries, even if just part of the original binary is stored in a table. Copy binaries if pieces of them…Sep 27, 20191Sep 27, 20191
IEx Persistent HistoryThe ERL_AFLAGS variable is for setting a list of options which are added to the beginning of the erl command. In this case, we are adding…Mar 25, 20191Mar 25, 20191
Introduction to handle_continue in Elixir (and when to use it)The handle_continue/2 callback prevents race conditions and allows for faster, asynchronous initialization.Feb 1, 20192Feb 1, 20192
Using tuple-wrapping to improve `with` expressions in ElixirWrap your return values in tuples so you can clearly match them in the else blockJan 21, 20195Jan 21, 20195
Creating an HTTP Server using pure OTPUsing inets and httpd to create a simple HTTP server without adding external dependenciesNov 19, 2018Nov 19, 2018
Why do Erlang modules look like atoms in Elixir?This is a post about how Elixir knows the difference between Erlang modules, Elixir modules, and Elixir atomsNov 12, 20183Nov 12, 20183
A use case for match?/2 in ElixirSometimes I come across code where an map (or tuple) is being tested against a pattern to return a boolean result; like this:Aug 10, 2018Aug 10, 2018