What makes Elixir great:
A newbie's perspective

Elixir is a functional programming language that runs on Erlang VM

Elixir is a functional programming language that runs on Erlang VM

Elixir is a functional programming language that runs on Erlang VM

Basic Types

  • Booleans
  • Atoms
  • Strings
  • Lists
  • Tuples
  • Maps
  • Anonymous Functions

Pattern Matching

iex> x = 1
1
iex> 1 = x
1
iex> 2 = x
** (MatchError) no match of right hand side value: 1
iex> "HELLO WORLD" = "hello world" |> String.upcase()

Pipeline

Operators

iex> add = fn num when is_integer(num) -> num + 1 end
#Function<6.54118792/1 in :erl_eval.expr/5>
iex> add.(1)
2
iex> add.("1")
** (FunctionClauseError) no function clause matching in :erl_eval.....

Guard

Clauses

Recursions

“To iterate is human, to recurse is divine.”

(L. Peter Deutsch)

Macros

“With great power comes great responsibility.”

(Uncle Ben)

Processes

"Let it crash"

  • Spawn Links
  • Tasks
  • Agents
  • GenServers

Documentation

Talk about productivity

  • Doctests

Mix

Project Management and build tool for Elixir.

ExUnit

Testing Framework for Elixir

Hex

Phoenix

Ecto

Plug

IN OTHER WORDS...

THANK YOU!

What makes Elixir great in the mind of a newbie

By Iya Cataquian

What makes Elixir great in the mind of a newbie

  • 140