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
Elmで作るCLI
Search
uzimaru0000
May 04, 2020
Programming
0
120
Elmで作るCLI
https://othlotech.connpass.com/event/174247/
で話したElmの話です。
uzimaru0000
May 04, 2020
Tweet
Share
More Decks by uzimaru0000
See All by uzimaru0000
OGPを使いたい
uzimaru0000
0
150
git入門
uzimaru0000
1
290
Webフロントエンド入門
uzimaru0000
1
410
WebフロントエンジニアはOSの夢を見る
uzimaru0000
0
340
BrainFuckをつくった
uzimaru0000
0
350
Blogを作った話 -Zli x DeNA-
uzimaru0000
1
160
Compression Vue App
uzimaru0000
0
110
好きなライブラリ_OSS
uzimaru0000
0
200
Other Decks in Programming
See All in Programming
Laravel OpenAPIによる"辛くない"スキーマ駆動開発
kentaroutakeda
2
1.4k
CSRF対策のやり方、そろそろアップデートしませんか / Update your knowledge of CSRF protection
hiro_y
22
12k
Deno に Web 標準 API を実装する / Implementing Web Standard API to Deno
petamoriken
0
310
Jakarta EE 11 - Performance and Developer Productivity
ivargrimstad
0
850
RISC-V カスタムのためのツールチェーン拡張 ― GNU Binutils と GCC の拡張・コミュニティへの参加編 (未完成版)
a4lg
0
190
PHP8の機能を使って堅牢にコードを書く
fendo181
6
2k
マイクロサービスがほしいと思ったときに本当に必要だったもの〜なぜ人は共通基盤の夢を見るのか〜 / why microservice
77web
5
820
syndicationd LT
ymgyt
0
110
PHPアプリケーションのスケーラビリティと 信頼性を革新する nginx+ngx_mrubyとGoの融合
pyama86
2
220
導入から5年が経って見えた Datadog APM 運用の課題
bgpat
1
480
25 Years of the JCP Program
ivargrimstad
0
1k
before_rails_girls_after_rails_girls
maimux2x
0
300
Featured
See All Featured
Into the Great Unknown - MozCon
thekraken
10
810
Keith and Marios Guide to Fast Websites
keithpitt
407
22k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
0
3.2k
In The Pink: A Labor of Love
frogandcode
137
21k
Scaling GitHub
holman
456
140k
Writing Fast Ruby
sferik
619
59k
Designing the Hi-DPI Web
ddemaree
275
33k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
355
22k
Web development in the modern age
philhawksworth
201
10k
Building Flexible Design Systems
yeseniaperezcruz
317
37k
Navigating Team Friction
lara
177
13k
The MySQL Ecosystem @ GitHub 2015
samlambert
242
12k
Transcript
Elmで作るCLI うじまる
自己紹介 - 名前 - うじまる - 学年 - B4(21卒) -
好きなプログラミング言語 - TypeScript - Elm - 趣味 - 料理 - コーヒー - SNS - @uzimaru0000
Elmって知ってますか?
Elmとは?
そんなElmですが
Webフロントエンドだけだと 思ってませんか?
CLIツール、作れるんです
なんならサーバーも作れます
どういうこと?
どういうこと?
どういうこと?
仕組み `Platform.worker` という関数を使ってElmのアプリケーションを作成 port という機能を使ってJSとElmをつないであげる
仕組み
仕組み
仕組み
仕組み
仕組み
仕組み - I/O はHTTPになってもいいし、stdin/out になってもいい - Elmがやる部分はアプリケーションのロジック - JSは、InputのデータをElmに渡して処理された値を出力するだけ
これ、何かに見えませんか?
関数ですね
次回 いろんなプログラムに Elmを忍び込ませよう!!
ありがとうございました