HELLOSEND(AUDIENCE, {:GREETING, HELLO!})
interested programmer
I'd love to check out Elixir but I don't really have a problem that is big enough that Elixir is well
suited for.
MASSIVELY CONCURRENT
DISTRIBUTED
FAULT TOLERANT
WEB SCALE
PIPES |> PATTERN MATCHING |> MESSAGE PASSING |> IMMUTABILITY |> => {:OK, }
ELIXIR OFFERS A DIFFERENT WAY TO THINK ABOUT AND SOLVE PROBLEMS OF ANY SIZE. !
WRITING COMMANDLINE APPS
WITH ELIXIR
MIX
DEPENDENCIESHex package
Git/SCM Path
Dependency tasks
mix deps: lists all deps and their status mix deps.get Get non installed dependencies mix deps.compile mix deps.update mix deps.clean Remove all dependency files mix deps.unlock Unlock dependencies
UMBRELLA PROJECTS
Run tasks across apps
Run all your tests for apps in app_path
Run Applications in dependent order
TASKS
RUNNING OUR APPS
MIX ESCRIPT.BUILD
BASIC IO
TESTING IO
IO.ANSI
escape_fragment(string, emit \\ terminal())
%{clear, home, green, bright} Welcome
IO.red() IO.green() etc
home() send the cursor home
FILES AND PATHS
File.open
File.close
File.read
binread/write utf8 and IO module
File.read vs File.read!
Path.join and Path.expand
Path.wildcard
PORT
BASIC USAGE
DEMO
SCALING UP COMMAND LINE APPS
WITH TASKS & AGENTS
TASKS
AGENTSa simple abstraction around state
DEMODEMO
THANK YOU