Submit Search
Upload
Functionnal programming
•
Download as PPTX, PDF
•
0 likes
•
103 views
A
AndryRajohnson
Follow
Learning functional Programming with javaScript
Read less
Read more
Software
Slideshow view
Report
Share
Slideshow view
Report
Share
1 of 31
Download now
Recommended
Mume JQueryMobile Intro
Mume JQueryMobile Intro
Gonzalo Parra
Cross-platform development in the context of mobile web
Cross-platform development in the context of mobile web
Misha Reyzlin
Jquery, write less do more by weLaika
Jquery, write less do more by weLaika
Filippo Dino
JavaScript on Rails 튜토리얼
JavaScript on Rails 튜토리얼
Sukjoon Kim
20111014 mu me_j_querymobile
20111014 mu me_j_querymobile
Erik Duval
Railsbridge javascript
Railsbridge javascript
p4geoff
Intro to jQuery for Drupal
Intro to jQuery for Drupal
jhamiltoorion
Intro to jquery
Intro to jquery
Dan Pickett
Recommended
Mume JQueryMobile Intro
Mume JQueryMobile Intro
Gonzalo Parra
Cross-platform development in the context of mobile web
Cross-platform development in the context of mobile web
Misha Reyzlin
Jquery, write less do more by weLaika
Jquery, write less do more by weLaika
Filippo Dino
JavaScript on Rails 튜토리얼
JavaScript on Rails 튜토리얼
Sukjoon Kim
20111014 mu me_j_querymobile
20111014 mu me_j_querymobile
Erik Duval
Railsbridge javascript
Railsbridge javascript
p4geoff
Intro to jQuery for Drupal
Intro to jQuery for Drupal
jhamiltoorion
Intro to jquery
Intro to jquery
Dan Pickett
"Javascript" por Tiago Rodrigues
"Javascript" por Tiago Rodrigues
Núcleo de Electrónica e Informática da Universidade do Algarve
Object Oriented Programming In JavaScript
Object Oriented Programming In JavaScript
Forziatech
EuRuKo JRuby Talk 2008
EuRuKo JRuby Talk 2008
geraldbauer
Intro to Selenium UI Tests with pytest & some useful pytest plugins
Intro to Selenium UI Tests with pytest & some useful pytest plugins
Asif Mohaimen
Java script basic
Java script basic
Vithushan Vinayagamoorthy
Java fundamentals
Java fundamentals
Sohail Shaghasi
Javascript and Jquery: The connection between
Javascript and Jquery: The connection between
Clint LaForest
How to actually use promises - Jakob Mattsson, FishBrain
How to actually use promises - Jakob Mattsson, FishBrain
Codemotion Tel Aviv
RubyMotion
RubyMotion
Mark
Your Library Sucks, and why you should use it.
Your Library Sucks, and why you should use it.
Peter Higgins
JavaScript Misunderstood
JavaScript Misunderstood
Bhavya Siddappa
JavaOne TS-5098 Groovy SwingBuilder
JavaOne TS-5098 Groovy SwingBuilder
Andres Almiray
Basics of Ext JS
Basics of Ext JS
ikhwanhayat
Enhance your programming skills
Enhance your programming skills
Akshay Saini
Javascript Ks
Javascript Ks
ssetem
Python 101
Python 101
The Active Network
Unobtrusive javascript with jQuery
Unobtrusive javascript with jQuery
Angel Ruiz
Objective-C Crash Course for Web Developers
Objective-C Crash Course for Web Developers
Joris Verbogt
Writing extensible plugins
Writing extensible plugins
Imran Nathani
JavaScript and jQuery Basics
JavaScript and jQuery Basics
Kaloyan Kosev
Meetup Javascript for beginner
Meetup Javascript for beginner
AndryRajohnson
React 101
React 101
AndryRajohnson
More Related Content
Similar to Functionnal programming
"Javascript" por Tiago Rodrigues
"Javascript" por Tiago Rodrigues
Núcleo de Electrónica e Informática da Universidade do Algarve
Object Oriented Programming In JavaScript
Object Oriented Programming In JavaScript
Forziatech
EuRuKo JRuby Talk 2008
EuRuKo JRuby Talk 2008
geraldbauer
Intro to Selenium UI Tests with pytest & some useful pytest plugins
Intro to Selenium UI Tests with pytest & some useful pytest plugins
Asif Mohaimen
Java script basic
Java script basic
Vithushan Vinayagamoorthy
Java fundamentals
Java fundamentals
Sohail Shaghasi
Javascript and Jquery: The connection between
Javascript and Jquery: The connection between
Clint LaForest
How to actually use promises - Jakob Mattsson, FishBrain
How to actually use promises - Jakob Mattsson, FishBrain
Codemotion Tel Aviv
RubyMotion
RubyMotion
Mark
Your Library Sucks, and why you should use it.
Your Library Sucks, and why you should use it.
Peter Higgins
JavaScript Misunderstood
JavaScript Misunderstood
Bhavya Siddappa
JavaOne TS-5098 Groovy SwingBuilder
JavaOne TS-5098 Groovy SwingBuilder
Andres Almiray
Basics of Ext JS
Basics of Ext JS
ikhwanhayat
Enhance your programming skills
Enhance your programming skills
Akshay Saini
Javascript Ks
Javascript Ks
ssetem
Python 101
Python 101
The Active Network
Unobtrusive javascript with jQuery
Unobtrusive javascript with jQuery
Angel Ruiz
Objective-C Crash Course for Web Developers
Objective-C Crash Course for Web Developers
Joris Verbogt
Writing extensible plugins
Writing extensible plugins
Imran Nathani
JavaScript and jQuery Basics
JavaScript and jQuery Basics
Kaloyan Kosev
Similar to Functionnal programming
(20)
"Javascript" por Tiago Rodrigues
"Javascript" por Tiago Rodrigues
Object Oriented Programming In JavaScript
Object Oriented Programming In JavaScript
EuRuKo JRuby Talk 2008
EuRuKo JRuby Talk 2008
Intro to Selenium UI Tests with pytest & some useful pytest plugins
Intro to Selenium UI Tests with pytest & some useful pytest plugins
Java script basic
Java script basic
Java fundamentals
Java fundamentals
Javascript and Jquery: The connection between
Javascript and Jquery: The connection between
How to actually use promises - Jakob Mattsson, FishBrain
How to actually use promises - Jakob Mattsson, FishBrain
RubyMotion
RubyMotion
Your Library Sucks, and why you should use it.
Your Library Sucks, and why you should use it.
JavaScript Misunderstood
JavaScript Misunderstood
JavaOne TS-5098 Groovy SwingBuilder
JavaOne TS-5098 Groovy SwingBuilder
Basics of Ext JS
Basics of Ext JS
Enhance your programming skills
Enhance your programming skills
Javascript Ks
Javascript Ks
Python 101
Python 101
Unobtrusive javascript with jQuery
Unobtrusive javascript with jQuery
Objective-C Crash Course for Web Developers
Objective-C Crash Course for Web Developers
Writing extensible plugins
Writing extensible plugins
JavaScript and jQuery Basics
JavaScript and jQuery Basics
More from AndryRajohnson
Meetup Javascript for beginner
Meetup Javascript for beginner
AndryRajohnson
React 101
React 101
AndryRajohnson
Git et github (1)
Git et github (1)
AndryRajohnson
2h landing page
2h landing page
AndryRajohnson
Java script the weird part (PART I )
Java script the weird part (PART I )
AndryRajohnson
Modern web app with REACT
Modern web app with REACT
AndryRajohnson
Coder son site web
Coder son site web
AndryRajohnson
More from AndryRajohnson
(7)
Meetup Javascript for beginner
Meetup Javascript for beginner
React 101
React 101
Git et github (1)
Git et github (1)
2h landing page
2h landing page
Java script the weird part (PART I )
Java script the weird part (PART I )
Modern web app with REACT
Modern web app with REACT
Coder son site web
Coder son site web
Recently uploaded
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Ahmed Mohamed
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
umasea
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
stazi3110
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
kotipi9215
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Christina Lin
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
OPEN KNOWLEDGE GmbH
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
VICTOR MAESTRE RAMIREZ
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
AxelRicardoTrocheRiq
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
Andreas Granig
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
BradBedford3
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief Utama
Hanief Utama
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEE
VICTOR MAESTRE RAMIREZ
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
Ortus Solutions, Corp
Professional Resume Template for Software Developers
Professional Resume Template for Software Developers
Vinodh Ram
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
MyIntelliSource, Inc.
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
Power Karaoke
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
soniya singh
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
MyIntelliSource, Inc.
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
Tier1 app
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽❤️🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽❤️🧑🏻 89...
gurkirankumar98700
Recently uploaded
(20)
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief Utama
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
Professional Resume Template for Software Developers
Professional Resume Template for Software Developers
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽❤️🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽❤️🧑🏻 89...
Functionnal programming
1.
Learning Functional Programming with
JS @RajohnsonAndry
2.
What is functional
programming?
3.
What is functional
programming? a programming paradigm
4.
What is functional
programming? a coding style
5.
What is functional
programming? a mindset
6.
What is functional
programming? a sexy, buzz-wordy trend
7.
Why functional JavaScript?
8.
Why functional JavaScript? object-oriented
JS gets tricky (prototypes? this?!?)
9.
Why functional JavaScript? safer,
easier to debug/maintain
10.
Why functional JavaScript? established
community
11.
OK, let’s do
it!
12.
OK, let’s do
it! ...how?
13.
Do everything with
functions input -> output
14.
Not functional: var name
= “Andry”; var greeting = “Hi, I’m ”; console.log(greeting + name); => “Hi, I’m Andry”
15.
Functional: function greet(name) { return
“Hi, I’m ” + name; } greet(“Andry”); => “Hi, I’m Andry”
16.
Avoid side effects use
“pure” functions
17.
Not pure: var name
= “Andry”; function greet() { console.log(“Hi, I’m ” + name); }
18.
Pure: function greet(name) {
return “Hi, I’m ” + name; }
19.
Use higher-order functions functions
can be inputs/outputs
20.
function makeAdjectifier(adjective) { return
function (string) { return adjective + “ ” + string; }; } var coolifier = makeAdjectifier(“cool”); coolifier(“conference”); => “cool conference”
21.
Don’t iterate use map,
reduce, filter
22.
http://www.datasciencecentral.com/forum/topics/what-is-map-reduce
23.
Avoid mutability use immutable
data
24.
Mutation (bad!): var rooms
= [“H1”, “H2”, “H3”]; rooms[2] = “H4”; rooms; => ["H1", "H2", "H4"]
25.
No mutation (good!): var
rooms = [“H1”, “H2”, “H3”]; var newRooms = rooms.map(function (rm) { if (rm == “H3”) { return “H4”; } else { return rm; } }); newRooms; => ["H1", "H2", "H4"] rooms; => ["H1", "H2", "H3"]
26.
Persistent data structures for
efficient immutability Mori, Immutable.js
27.
Ready to try
it out?
28.
FP libraries for
JS Mori (http://swannodette.github.io/mori/) Immutable.js (https://facebook.github. io/immutable-js/) Underscore (http://underscorejs.org/) Lodash (https://lodash.com/) Ramda (http://ramdajs.com/) ...and more!
29.
Want to learn
more?
30.
“An introduction to
functional programming” by Mary Rose Cook https://codewords.recurse.com/issues/one/an-introduction-to-functional-programming
31.
Thanks for listening! I’m
@RajohnsonAndry
Download now