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
Dominic Barker
April 22, 2016
Programming
0
57
Introduction to functional programming with Javascript
Dominic Barker
April 22, 2016
Tweet
Share
More Decks by Dominic Barker
See All by Dominic Barker
Atomic Architecture
dakuan
3
160
Model, View, Whatever.
dakuan
0
130
Somewhat Stylish
dakuan
1
62
Other Decks in Programming
See All in Programming
Architectural Extensions
denyspoltorak
0
270
Fluid Templating in TYPO3 14
s2b
0
130
QAフローを最適化し、品質水準を満たしながらリリースまでの期間を最短化する #RSGT2026
shibayu36
2
4.3k
AIによる高速開発をどう制御するか? ガードレール設置で開発速度と品質を両立させたチームの事例
tonkotsuboy_com
7
2k
Patterns of Patterns
denyspoltorak
0
1.4k
CSC307 Lecture 04
javiergs
PRO
0
660
AI Schema Enrichment for your Oracle AI Database
thatjeffsmith
0
250
高速開発のためのコード整理術
sutetotanuki
1
390
なぜSQLはAIぽく見えるのか/why does SQL look AI like
florets1
0
450
AI Agent Tool のためのバックエンドアーキテクチャを考える #encraft
izumin5210
6
1.8k
AI時代のキャリアプラン「技術の引力」からの脱出と「問い」へのいざない / tech-gravity
minodriven
20
6.8k
Implementation Patterns
denyspoltorak
0
280
Featured
See All Featured
Rebuilding a faster, lazier Slack
samanthasiow
85
9.4k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
New Earth Scene 8
popppiees
1
1.5k
Paper Plane (Part 1)
katiecoart
PRO
0
4k
Abbi's Birthday
coloredviolet
1
4.7k
Amusing Abliteration
ianozsvald
0
96
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
The Cult of Friendly URLs
andyhume
79
6.8k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
63
What does AI have to do with Human Rights?
axbom
PRO
0
2k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Practical Orchestrator
shlominoach
191
11k
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