Ruby's Influence over the Elixir Language - Ruby Day 2014

Post on 27-Nov-2014

430 views 1 download

Tags:

description

This is my presentation of Elixir at Ruby Day 2014 in Roncade, Italy on September 26 2014. Elixir is a functional language that runs over the Erlang virtual machine. Despite being Erlang inside, Elixir has a Ruby-like syntax, with do...end blocks and many intentional name collisions with Ruby's keywords and library methods. This makes it easier for Rubysts to pick it up than most other functional languages with arcane syntaxes. The talk will present elements of the Elixir language. We'll also look at the Phoenix web framework and how it was influenced by Ruby on Rails. It's worth reading the speaker notes. They are in the original files at http://connettiva.eu/rubyday plus some tutorials and a link to a Phoenix project on my GitHub page. CC-BY-SA 4.0 plus the original licenses of the images (in the notes)

transcript

Ruby's influenceover the Elixir language

by Paolo Montrasiopaolo.montrasio@connettiva.euhttp://connettiva.eu/rubyday

Differences

f(x)→y

Strings

Lists and arrays

Getting serious(Mr Algorithm)

DIY

No Devise

DIY with the cookie session store

The equal in <%= if cond do %> is

important

Is it any better?

http://connettiva.eu/rubyday

Paolo Montrasiopaolo.montrasio@connettiva.eu

CC-BY-SA 4.0 plus the original licences of the images