Tyler PachalCustom 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❗2 min read·Sep 19, 2023----
Tyler PachalError handling in Elixir: rescue vs catchThe rescue and catch blocks handle different types of errors, to handle all types of errors use catch/23 min read·Jun 25, 2020--2--2
Tyler PachalCustom ExUnit AssertionWriting an assert_invalid macro for ExUnit assertions. Implementation at the bottom.2 min read·Feb 11, 2020--1--1
Tyler PachalTracking 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…7 min read·Sep 27, 2019--1--1
Tyler PachalIEx 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…1 min read·Mar 25, 2019----
Tyler PachalIntroduction to handle_continue in Elixir (and when to use it)The handle_continue/2 callback prevents race conditions and allows for faster, asynchronous initialization.4 min read·Feb 1, 2019--2--2
Tyler PachalUsing tuple-wrapping to improve `with` expressions in ElixirWrap your return values in tuples so you can clearly match them in the else block3 min read·Jan 21, 2019--5--5
Tyler PachalCreating an HTTP Server using pure OTPUsing inets and httpd to create a simple HTTP server without adding external dependencies4 min read·Nov 19, 2018----
Tyler PachalWhy 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 atoms4 min read·Nov 12, 2018--3--3
Tyler PachalA 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:1 min read·Aug 10, 2018----