Devon C. Estes

Soft delete with Ecto 3 and Postgres

One thing that folks sometimes want or need to do is to be able to "soft delete" records in a database. This means that instead of actually removing the record from a database, you in some way keep it there but make it "invisible" to your application. »

Unit Tests in Elixir - Part 3

In part 1 of this series I went over a couple rules that I follow when writing unit tests, and in part 2 I showed how to unit test GenServers. Today, though, we're gonna be getting our hands dirty and breaking some of those rules that I laid out in part 1. I mean, what good are rules if you don't break them every now and then! »

Unit Tests in Elixir - Part 2

In part 1 of this series I went over a couple rules that I follow when writing unit tests. Now I'm going to dig in to some of the specifics of how to unit test certain types of behavior that can be a little tricky to do properly. »