Elixir Basics Workshop
From the Boulder Elixir Meetup on 2015-01-28.
Welcome to the Elixir Basics Workshop!
Purpose
The goals of this workshop are to:
- Learn basic syntax & how to work with Elixir
- Be able to solve simple problems
- Be exposed to Elixir's core features
- Be inspired to go home and learn more
You will learn about:
- iex, Elixir's interactive shell
- Variables & pattern matching
- Control flow:
if
&case
- Functions named & anonymous
- Lists & Maps
- The amazing pipe character
- Organizing code into modules & files
- Recursion
Up & Running
Prerequisites
In order to get the most out of this workshop, you will need:
- Some coding experience with another language
- A laptop set up with a code editor
- Install Elixir with Homebrew (on Mac)
$ brew install elixir
- Other platforms, follow these instructions: http://elixir-lang.org/install.html
- Syntax highlighting for elixir: vim, sublime, etc.
Useful links:
- Elixir Website: http://elixir-lang.org/
- Elixir Docs: http://elixir-lang.org/docs/stable/elixir/Kernel.html
Getting Started
You should start by cloning this repository to your local machine.
$ git clone git@github.com:boulder-elixir/elixir-basics-workshop.git
Once you have it cloned, open the index.html
file to view the presentation. At the exercise prompts, complete them in either iex
or in the file lib/workshop.ex
as requested.
Tests are provided for the exercises as well as some of the examples. Uncomment them if necessary and run all tests with $ mix test
in the root folder.