Check out our new series - Moving to Elixir


Elixir and Phoenix Screencasts

#35: Gravatar with Phoenix

Gravatar is a great way to easily display avatars. In this episode we’ll create simple helper function that we’ll use to display a user’s Gravatar.

#34: Elixir Guards

In this episode we take a look at guards and how we can use them in Elixir. We’ll start by using guards with functions to see how they work. Then we’ll extract them into custom guards with defguard.

#33: Elixir Control Flow

In this episode we’ll learn about three different control structures in Elixir: if/else, case, and cond. If you’re new to Elixir or just learning programming this is a great episode to start with.

#32: Intro to Agents

Elixir Agents are used to manage state. In this episode we’ll learn how we can use an Agent to update and retrieve some state of our own.

#31: Composing Ecto Queries

In this episode we look at one of the great features of Ecto - composability. We’ll add a query into an existing filter to see how easy it is to compose queries in Ecto.

#30: Moving to Elixir Part 6

In part 6 we experiment with OTP to see how we can make our inventory import more resilient. Then we’ll use the power of concurrency in Elixir to speed up our inventory import.

#29: Moving to Elixir Part 5

Now that our interface is working, we turn our attention to making sure our inventory it displays is current. We’ll create a custom Mix Task that we can run to import and update our inventory.

#28: Moving to Elixir Part 4

In part 4 we work on some improvements to our interface. We’ll add pagination, use Ecto to ensure we’re only displaying the cars we want to. Then we’ll see how helper functions can be used in our templated.

#27: Moving to Elixir Part 3

In part 3 we tackle URLs. We create a new URL structure to go along with our new app. Then we use Plug to create a custom redirect module to handle traffic to the old URL structure.