Undefined Rants

Code, Ramen and Avocado

Time Travel Back to Understand Elm Mailbox

Imagine that you’re a military colonel fighting a war back in the ancient time. You have a base camp but since you are fighting outside of home base, the only way to communicate with your commander is through the homing pigeons. As the war proceed, your great commander will send you military tactics for you to act accordingly to the plan. In order to notify you, your commander has to know your address, which he clearly does, and in addition to that, he will attached signal (text, cipher etc…) to the pigeons and let it fly to you. This is how you win the war without missing any instruction from your commander!

Coincidently, this is how Mailbox in Elm works too.

A Step-to-step Guide to Elm Signal

When I first start to learn Elm, I failed to understand Elm Signal. Luckily there is a start-app which wrap up Signal so that I don’t have to understant it to start playing with Elm. However, I like to understand how the tool I use work so I decided to spend time on it.

From the Elm documentation,

A signal is a value that changes over time

Let’s Elm - Setting Up Everything

In this post, I will walk you through the step from 0 to display “Hello, Elm” in your browser. We will also discover some tools in Elm ecosystem which make our development with Elm becomes easy and fun.