Toggle between alternate files, edit files by type, and create files with templates — all with vim-projectionist
. If you’ve never used it, you’re in for a treat.
Explore a combination of mocking, faking, and dependency injection to focus on the code being tested.
Sum types are a powerful domain modeling technique. Let’s look at how to use them to remove invalid states.
From big-endian to little-endian through unsigned integers. A tale of two ends, and Elixir shines again.
Elixir is known for being a language made for building distributed applications that scale, are massively concurrent, and have self-healing properties. But is Elixir good enough for the mundane scripts of this world?
It turns out solving chess moves with recursion and pattern matching is a lot of fun!
Long-lived processes are everywhere in Elixir. Let’s look at why they’re needed and how to create them!
When coming to a functional language, I often hear people ask, “How do I organize my code?” Let’s take a look at some ways in which data can tell us how to organize our modules and functions.
Structs and maps are easy to work with in Elixir, but if they are stored in the database as JSON and accessed via an Ecto Schema, it’s not as clear how to query them. We’re going to explore how to do that, and make it clear and easy.
You can use PostgreSQL’s JSON data types to store embedded data on Ecto models. But the way Ecto tells you to store it might not be the best way.