Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Writing Command Line Applications in Elixir
Search
James Smith
July 25, 2014
Programming
1.6k
7
Share
Writing Command Line Applications in Elixir
Using Elixir to solve small problems.
James Smith
July 25, 2014
Other Decks in Programming
See All in Programming
Vibe NLP for Applied NLP
inesmontani
PRO
0
500
PicoRuby for IoT: Connecting to the Cloud with MQTT
yuuu
2
690
属人化しないコード品質の作り方_2026.04.07.pdf
muraaano
0
260
(Re)make Regexp in Ruby: Democratizing internals for the JIT
makenowjust
3
840
The Less-Told Story of Socket Timeouts
coe401_
3
690
PHP で mp3 プレイヤーを実装しよう
m3m0r7
PRO
0
290
CursorとClaudeCodeとCodexとOpenCodeを実際に比較してみた
terisuke
1
500
AI-DLC Deep Dive
yuukiyo
9
4.9k
Going Multiplatform with Your Android App (Android Makers 2026)
zsmb
2
460
🦞OpenClaw works with AWS
licux
1
290
WebAssembly を読み込むベストプラクティス 2026年春版 / Best Practices for Loading WebAssembly (Spring 2026)
petamoriken
2
120
検索設計から 推論設計への重心移動と Recall-First Retrieval
po3rin
4
1.2k
Featured
See All Featured
WENDY [Excerpt]
tessaabrams
10
37k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
530
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
270
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
330
Scaling GitHub
holman
464
140k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
270
Become a Pro
speakerdeck
PRO
31
5.9k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.2k
Docker and Python
trallard
47
3.8k
Into the Great Unknown - MozCon
thekraken
41
2.4k
Transcript
HELLO SEND(AUDIENCE, {:GREETING, “HELLO!”})
None
None
–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.”
None
MASSIVELY CONCURRENT DISTRIBUTED FAULT TOLERANT WEB SCALE FUNCTIONAL
PIPES |> PATTERN MATCHING |> MESSAGE PASSING |> IMMUTABILITY |>
=> {:OK, “ ☺”} ELIXIR OFFERS A DIFFERENT WAY TO THINK ABOUT AND SOLVE PROBLEMS OF ANY SIZE. !
None
WRITING COMMANDLINE APPS WITH ELIXIR
None
None
MIX
DEPENDENCIES Hex 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”
None
UMBRELLA PROJECTS • Run tasks across apps • Run all
your tests for apps in app_path • Run Applications in dependent order…
MIX TASKS
RUNNING OUR APPS MIX ESCRIPT.BUILD
None
None
None
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
AGENTS a simple abstraction around state
DEMO DEMO
THANK YOU