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
54
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
140
Model, View, Whatever.
dakuan
0
130
Somewhat Stylish
dakuan
1
59
Other Decks in Programming
See All in Programming
GitHub Actions × RAGでコードレビューの検証の結果
sho_000
0
250
Domain-Driven Transformation
hschwentner
2
1.9k
2,500万ユーザーを支えるSREチームの6年間のスクラムのカイゼン
honmarkhunt
6
5.2k
AWSマネコンに複数のアカウントで入れるようになりました
yuhta28
2
160
“あなた” の開発を支援する AI エージェント Bedrock Engineer / introducing-bedrock-engineer
gawa
11
1.9k
SwiftUI Viewの責務分離
elmetal
PRO
1
220
iOSエンジニアから始める visionOS アプリ開発
nao_randd
3
130
How mixi2 Uses TiDB for SNS Scalability and Performance
kanmo
35
14k
Grafana Cloudとソラカメ
devoc
0
140
Pythonでもちょっとリッチな見た目のアプリを設計してみる
ueponx
1
530
『GO』アプリ バックエンドサーバのコスト削減
mot_techtalk
0
140
Multi Step Form, Decentralized Autonomous Organization
pumpkiinbell
1
720
Featured
See All Featured
Building an army of robots
kneath
302
45k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
Statistics for Hackers
jakevdp
797
220k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
366
25k
Building Flexible Design Systems
yeseniaperezcruz
328
38k
Why You Should Never Use an ORM
jnunemaker
PRO
55
9.2k
GraphQLの誤解/rethinking-graphql
sonatard
68
10k
Speed Design
sergeychernyshev
26
790
Being A Developer After 40
akosma
89
590k
Agile that works and the tools we love
rasmusluckow
328
21k
Thoughts on Productivity
jonyablonski
69
4.5k
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