Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Functional JavaScript
Search
Medson Oliveira
December 14, 2018
Programming
92
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Functional JavaScript
Introduction about what's and how to program functional javascript
Medson Oliveira
December 14, 2018
Transcript
36 slides
FUNCTIONAL PROGRAMMING IN JAVASCRIPT
MEDSON OLIVEIRA Full Stack Developer at ASTROCODERS github.com/medson10 @o_medson @MedsonOliveira
[email protected]
What's functional programming?
None
None
None
What makes a language have the possibility of being functional?
• Immutability • First class functions • Recursion • Expression oriented programming
Immutability? a value can be defined just one time
First class functions • Lambda expressions • Lexical closures •
High order functions
Why Recursion? "Is not just much more elegant, but also
the only way to iterate without invoking side-effects"
Expression oriented programming? Everything returns a value
How JavaScript can be functional?
JavaScript is not a pure functional language!!!!!1 • Doesn't have
immutability • JavaScript is object based, everything is an object • Type system supeeeerrrrr dynamic
So what's the point?
Functional is not just a kind of programming language but
also a way to program and organize your code
None
So can I program in a functional way in all
the others languages?
None
What's needed for code in a functional way? • First
class functions • Immutability • Recursion
And how we can start it on JavaScript?
None
None
None
What would be Functional JavaScript?
CONST now, CONST tomorrow, CONST forever
Pure functions
Side Effects
Pipe instead of Chain
But why? Let's think in a case a little more
complex
And about performance? What is the pipe behind?
Let's curry some functions
And how ramda helps us with all this? https://ramdajs.com/docs/#
HERE I AM!!!!!!!!
But why not code in a functional language and compile
it to JavaScript?
None
References https://github.com/stoeffel/awesome-fp-js https://lukajcb.github.io/blog/functional/2016/07/31/what-makes-a-language-functio nal.html https://hackernoon.com/two-years-of-functional-programming-in-javascript-lessons-l earned-1851667c726 https://github.com/hemanth/functional-programming-jargon https://hackernoon.com/currying-in-js-d9ddc64f162e
More Decks by Medson Oliveira
See All by Medson Oliveira
React_Native_and_ReasonML.pdf
medson10
0
66
Other Decks in Programming
See All in Programming
TS 7.0 で baseUrl が使えなくなった今、パスエイリアスをどうするか
bicstone
2
860
AIが実装を担う時代の「技術設計」と「チームマネジメント」
kamina_zzz
2
470
[DroidKnights 2026] Workflow AX 적용기 — 자동 정책 정리부터 E2E까지
dayeon
0
130
JavaScriptはシングルバイナリの夢を見るか / Does JavaScript Dream of a Single Binary?
ssssota
1
1.1k
読みやすい!と評判(?)の発表の準備にかける私のこだわり
shoheimitani
0
170
vue-tsc x TypeScript7
koukimiura
0
110
ruby/uri meets WHATWG
jinroq
0
180
Compiling Your Language to WasmGC & Friends
tanishiking
0
830
Kotlin Fest 2026: Kotlin コンパイラに Contribute してみよう! - Kotlin/Wasm で深い再帰を書けるようにした話
ternbusty
1
430
선언형 햅틱 라이브러리 진동을 소개합니다
l2hyunwoo
1
330
imagewebp()の向こう側: WebPはなぜ JPEG・PNGより軽いのか
yuzneri
0
160
LLM 101: Exploring LLMs, Starting with Tokens.
dalinaum
0
120
Featured
See All Featured
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
6
970
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
Accessibility Awareness
sabderemane
1
320
Well, that’s weird…
csswizardry
3
260
A Soul's Torment
seathinner
9
4k
Navigating Weather and Climate Data
rabernat
0
610
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
340
The Curse of the Amulet
leimatthew05
4
17k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
1
320
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
Un-Boring Meetings
codingconduct
0
510
How to Ace a Technical Interview
jacobian
280
24k