Skip to content
0:00 / 0:00

#currying#partialapplication#closures

From Javascript to Haskell : Functional Programming made simple

Zenika TV

3.6K subscribers • 1 video on Hallway

YouTube

Beginner. No background in the topic needed.

2.2K views8 years ago1 recommendation

Programming languagesJavaScriptHaskellFunctional programming

An introduction to functional programming concepts like currying, closures, and referential transparency by refactoring imperative JavaScript to Haskell.

Did you ever had a colleague that said «Well, it's simple. I just used a partial application on that curried function using higher order functions and closures» ? Did you understand anything ? If not, then that talk is what you are looking for. Functional programming uses a lot of concepts that are familiar to mathematicians. And that's scary ! But, applied to computing, it's actually pretty simple ! While live coding a refactoring that transforms a imperative code to a functional one, main concepts of functional programming will be introduced when necessary and explained deeply. At the end of this talk, you will understand these key concepts : - Referential transparency - Functions as first class citizens - Higher order functions - Closures - Lambda calculus - Currying - Partial application - Function composition - «Point-free» notation Follow the code step by step : github.com/FaustXVI/functional-programming-introduction/tree…

Why it's here

1 person recommends this

What people say. Recommended as an accessible way to learn functional programming concepts by transitioning from JavaScript to Haskell.

u/corpsmodernein r/functionalprogramming • Recommends

On “From C++ to which language?”

Functional programming the hard way (like, Everest north face with an elephant on your back) : Haskell Haskell is not used a lot in the real world but it's a fantastic language to learn functional programming as it's (almost) impossible to write imperative code. Everything you will learn the hard way with Haskell will be transposable in any other functional-friendly language. I also highly recommand watching this video: [video