elixir TIL :calendar rocks Today I learned that Erlang's native calendar module has a super useful function: last_day_of_the_month/2! This saved me a ton of work. Here's how you could use it in
elixir TIL about Ecto schema @derive TL;DR; You can use @derive to choose what attributes from your model you want to serialize via Poison.encode instead of adding custom code to clean your models: Not TL;DR; version
elixir A saner way to deal with complex flows Yes, finally! We now have in Elixir the with keyword! (See what I did there with the post title?) In a gist, with allows you to sequence function calls and return a certain
elixir Digging - Phoenix models I’ll start a new - well, and first too - series of posts called “Digging”. Whenever I face an interesting and enriching digging through code I’ll just write down the steps
elixir Elixir and Travis CI It took me a few hits to make Travis CI and my Addict lib to flow smoothly, so here’s the full instructions to set it up: Go to Travis CI homepage and
programming Elixir: from 0 to spawn() in 30 minutes Introduction A bunch of tutorials already exist online. But while me and @tjsousa were making the slides for the Lisbon Elixir Meetup, I thought that it’d be great to have something like