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 Javascript
Search
Dominic Barker
April 22, 2016
Programming
0
50
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
120
Model, View, Whatever.
dakuan
0
120
Somewhat Stylish
dakuan
1
56
Other Decks in Programming
See All in Programming
Ruby Function Composition
bkuhlmann
1
330
PHPの次期バージョンはこの時期どうなっているのか - Internalsの開発体制について - PHPカンファレンス小田原
youkidearitai
PRO
1
190
Milestoner
bkuhlmann
1
410
スクラムガイドのスプリントレトロスペクティブを改めて読みかえしてみた / Re-reading the Sprint Retrospective Section in the Scrum Guide
mackey0225
3
410
[技育CAMPアカデミア]アイディアを形に!【超入門】スマホアプリ開発〜リリースまでの流れをご紹介
teamlab
PRO
0
360
From Spring Boot 2 to Spring Boot 3 with Java 22 and Jakarta EE
ivargrimstad
0
1.2k
ONE WEDGE_company_guide
1wedge_one
0
470
Build Apps for iOS, Android & Desktop in 100% Kotlin With Compose Multiplatform (mDevCamp 2024)
zsmb
0
320
OpenAPIを中心に考えるAPI開発入門 / Introduction to API Development with a Focus on OpenAPI
seike460
PRO
2
170
Prepare for Jakarta EE 11 - Performance and Developer Productivity
ivargrimstad
0
750
大規模Reactアプリのリアーキテクチャ~8万行のTanStack Query移行の軌跡~
kj455
4
950
What We Can Learn From OSS
inouehi
0
420
Featured
See All Featured
Teambox: Starting and Learning
jrom
128
8.4k
Typedesign – Prime Four
hannesfritz
36
2.1k
Web development in the modern age
philhawksworth
202
10k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
659
120k
Bash Introduction
62gerente
604
210k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
116
18k
Facilitating Awesome Meetings
lara
42
5.6k
Build your cross-platform service in a week with App Engine
jlugia
225
17k
Documentation Writing (for coders)
carmenintech
60
3.9k
A Tale of Four Properties
chriscoyier
151
22k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
501
140k
Designing Experiences People Love
moore
136
23k
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