When dealing with collections, I frequently find myself filtering and mapping a collection to extract the results I need. Elixir’s
Enum library has a great
filter_map/3 function to simplify this…
I’ve been working on my first Phoenix project recently. I found it very annoying to have to add an aliases for every model I want to interact with in
iex. There’s an easier way…
Recently I wanted to add basic text search to an application I as working on. It took me a while to figure out the right way to index columns for
LIKE lookups, especially for indexing compound columns. Here’s how I did it.