Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
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
7
1.5k
Writing Command Line Applications in Elixir
Using Elixir to solve small problems.
James Smith
July 25, 2014
Tweet
Share
Other Decks in Programming
See All in Programming
Basic Architectures
denyspoltorak
0
120
Cap'n Webについて
yusukebe
0
150
AtCoder Conference 2025「LLM時代のAHC」
imjk
2
590
AIの誤りが許されない業務システムにおいて“信頼されるAI” を目指す / building-trusted-ai-systems
yuya4
6
4k
re:Invent 2025 のイケてるサービスを紹介する
maroon1st
0
150
perlをWebAssembly上で動かすと何が嬉しいの??? / Where does Perl-on-Wasm actually make sense?
mackee
0
150
愛される翻訳の秘訣
kishikawakatsumi
3
350
Deno Tunnel を使ってみた話
kamekyame
0
250
AIコーディングエージェント(NotebookLM)
kondai24
0
240
AIコーディングエージェント(Gemini)
kondai24
0
280
AI Agent Tool のためのバックエンドアーキテクチャを考える #encraft
izumin5210
4
1.3k
AIコーディングエージェント(skywork)
kondai24
0
210
Featured
See All Featured
Facilitating Awesome Meetings
lara
57
6.7k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
720
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
180
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
680
30 Presentation Tips
portentint
PRO
1
170
The Power of CSS Pseudo Elements
geoffreycrofte
80
6.1k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
9
1k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
1
210
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
400
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Getting science done with accelerated Python computing platforms
jacobtomlinson
0
79
A better future with KSS
kneath
240
18k
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