Want to hire a senior React developer? Visit https://reactsquad.io/jan now!
If you’re expanding your team and need to hire React developers book your free discovery call today! 👉 https://www.reactsquad.io/schedule-a-call
What is functional programming? Using this tutorial, you can learn functional programming with JavaScript.
Explore the functional programming paradigm in JavaScript. This "step-by-step with no steps skipped" guide takes you by the hand all the way from primitives to function composition.
You'll learn the answer to questions like: "What is a closure?", "What is currying?", "What is point-free style?"
And all of that with examples in JavaScript.
📄 Prefer reading? Here is the article 👉 https://janhesters.com/blog/unleash-javascripts-potential-with-functional-programming
▶️ Mentioned in the video & what to watch next:
• Higher-Order Components Are Misunderstood In React: https://youtu.be/FtPv5s7O2x8
✅ Follow all of these to become a 10x developer:
• X (formerly known as Twitter) - https://x.com/janhesters
• Jan Hesters - https://janhesters.com/
• LinkedIn - https://www.linkedin.com/in/jan-hesters/
And remember to subscribe here on YouTube now!
👋 If you’re new to my channel, my name is Jan Hesters. I’m the CTO of ReactSquad.io. It’s a marketplace of vetted senior React developers for SaaS companies. We provide developers to dozens of companies, including some in the Fortune 500.
📧 For any questions or inquiries regarding this video, or working with Jan Hesters & ReactSquad, please reach out to: jan@reactsquad.io
CHAPTERS:
00:00 What is Functional Programming?
00:54 Primitive Data Types Explained
01:24 Composite Data Types
03:02 Functions Explained
03:18 Parameters and Arguements
03:45 Mapping Function
03:55 Procedure Function
04:38 I/O Operations Function
04:59 Methods in Programming
05:50 What are Noops (No Operations)?
06:04 Pure Functions
07:49 Idempotence
08:50 Referential transparency
09:25 First Class Functions
10:29 Higher Order Functions
10:58 Understanding Closures
13:18 Imperative vs. Declarative in Functional Programming
14:33 Immutability vs. Mutability in Programming
15:49 The Concept of Abstraction
17:26 Array Methods
17:41 The Map Method
19:12 The Filter Method
19:44 The Reduce Method
21:34 The difference between Statements and Expressions
22:51 Function Composition
25:40 Generalised Compose
28:21 Trace Function
29:06 Currying
30:06 Arity Functions
32:57 Partial Applications
33:57 Point-Free Style
34:19 Data Last Principle
36:17 Data Needs to Line up Principle
37:18 The Mozart exercise