The Blog

The lines in between

TIL Using raw SQL inside of Ecto.Query
Feb 7, 2019

To use raw sql in your Ecto.Query I learned there is a little helper function called `fragment`

Read More
TIL: Previewing SQL generated by Ecto.
Jan 27, 2019

To quickly see the SQL that Ecto will generate, use the `to_sq` function from the `Ecto.Adapters.SQL` module.

Read More
1000 unique visitors later
Jan 21, 2019

This post marks a small yet big milestone for this site. Today this site broke its record for 1000 unique visitors for a given month.

Read More
Quick tip when using webpack and npm packages that use relative url paths
Jan 15, 2019

If you are having issues with webpack and npm packages that have css files that use relative url paths here is a quick tip for you.

Read More
Using configuration to swap modules for mocks in your Elixir tests.
Jan 10, 2019

When you have a service module that does something with a third party using a mock module can prove to be a great tool for testing when you don't want to depend on that external service.

Read More
Inject from your controller to decouple your contexts in Phoenix.
Jan 6, 2019

In this post I will show you a simple pattern to decouple your Phoenix context so that you can specify from your controller how you want to preload your resource.

Read More
Does this thing work?
Jan 2, 2019

Yarp I guess I better start writing something useful.

Read More