Posts tagged "elixir"

Dynamic forms with Phoenix

Today we will learn how to build forms in Phoenix that use our schema information to dynamically show the proper input fields with validations, errors and so on. We aim to support the following API in our templates: <%= input f, :name %> <%= input f, :address %> <%= input f, :date_of_birth %> <%= input … »

Elixir Radar is more than a weekly newsletter now. It’s a channel.

Yeah! I’m excited to tell you we’re expanding Elixir Radar from a weekly newsletter to a channel you visit to find Elixir related stuff that matters — or when you don’t have time (or patience) to look around the web. In January 2015, Hugo Baraúna (co-founder at Plataformatec) created Elixir Radar as a weekly newsletter … »

Understanding deps and applications in your Mixfile

In my journey as a curious Elixir beginner, I’ve come across this seemingly simple question a few times: which applications from third-party libraries do I need to declare in my mix.exs file? Before we get down to the nitty-gritty of application dependencies, let’s first recap some basics of the initialization process in Elixir OTP applications. … »

Deploying Elixir applications with Edeliver

We’ve been talking about deploy and releases with Elixir lately, like how to run migrations on top of a release or how to deal with environment variables. Now it’s time to discover another tool that can help us release our Elixir application. After practicing deploy and tracing through nodes with Exrm, we got more comfortable … »

Beyond Functional Programming with Elixir and Erlang

I would like to add a slightly different perspective to functional programming in the Erlang VM: functional programming is not a goal in the Erlang VM. It is a means to an end. When designing the Erlang language and the Erlang VM, Joe, Mike and Robert did not aim to implement a functional programming language, … »

How to config environment variables with Elixir and Exrm

It’s very common (and highly recommended) that application keeps its configuration values separated from its version control. A way of doing this is by using ENV vars (environment variables). They’re being used for improvements mostly on maintainability. The 12-factor app manifesto explains it on its Configuration section: The twelve-factor app stores config in environment variables … »