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
Introduction to functional programming with Jav...
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Dominic Barker
April 22, 2016
Programming
57
0
Share
Introduction to functional programming with Javascript
Dominic Barker
April 22, 2016
More Decks by Dominic Barker
See All by Dominic Barker
Atomic Architecture
dakuan
3
170
Model, View, Whatever.
dakuan
0
130
Somewhat Stylish
dakuan
1
63
Other Decks in Programming
See All in Programming
飯MCP
yusukebe
0
440
LM Linkで(非力な!)ノートPCでローカルLLM
seosoft
0
300
AIコードレビューの導入・運用と AI駆動開発における「AI4QA」の取り組みについて
hagevvashi
0
580
コードレビューをしない選択 #でぃーぷらすトウキョウ
kajitack
3
1.2k
RSAが破られる前に知っておきたい 耐量子計算機暗号(PQC)入門 / Intro to PQC: Preparing for the Post-RSA Era
mackey0225
3
100
Codex の「自走力」を高める
yorifuji
0
1.3k
ネイティブアプリとWebフロントエンドのAPI通信ラッパーにおける共通化の勘所
suguruooki
0
230
年間50登壇、単著出版、雑誌寄稿、Podcast出演、YouTube、CM、カンファレンス主催……全部やってみたので面白さ等を比較してみよう / I’ve tried them all, so let’s compare how interesting they are.
nrslib
4
600
安いハードウェアでVulkan
fadis
1
860
CS教育のDX AIによる育成の効率化
niftycorp
PRO
0
180
Feature Toggle は捨てやすく使おう
gennei
0
390
一度始めたらやめられない開発効率向上術 / Findy あなたのdotfilesを教えて!
k0kubun
3
2.7k
Featured
See All Featured
Un-Boring Meetings
codingconduct
0
250
How to Ace a Technical Interview
jacobian
281
24k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
230
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
320
Scaling GitHub
holman
464
140k
Context Engineering - Making Every Token Count
addyosmani
9
790
A Modern Web Designer's Workflow
chriscoyier
698
190k
Being A Developer After 40
akosma
91
590k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
170
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
160
New Earth Scene 8
popppiees
2
2k
GraphQLとの向き合い方2022年版
quramy
50
14k
Transcript
Introduction to Functional programming (with javascript)
It is not rocket science
None
None
It is (probably) not a different paradigm of programming
It’s not new
Functional programming is a way of modelling a system in
terms of processes. Verbs not nouns.
input λ output data algorithm data
http request server http response db
react html http response mouse click keypress timer
f(data) => View
Functional programming suits the web
Erm. About all that terminology.
Pure function
Not a pure function
Not a pure function
Higher order function
map [a, b, c] [b, c, d] map [1] [11]
map
reduce [1, 2, 3] 6 reduce [1, 2, 3, 4]
reduce [2, 4]
[1, 2, 3, 4] reduce [1, 2, 2, 3, 3,
3, 4, 4, 4, 4]
map => reduce [{name: bob, age: 42}, {name: jenny, age:
40}] [42, 40] map [82] reduce
None
None
To the code!
Fin
None