Skip to content
HHackerTube.videoSurprise me

Monad - FunFunFunction #21

Monad - FunFunFunction #21 on HackerTube: recommended by 3 Hacker News commenters across 3 separate months, 2016–2021.

Fun Fun Function

tutorial · intermediate · evergreen

Open on YouTube

An episode of FunFunFunction explaining monads in JavaScript as functors that also implement flatMap. It builds on the preceding functor episode and works through code examples.

Why Hacker News recommends it

Recommended to people confused by monads as a friendly, practical explanation for JavaScript developers, with one commenter saying it finally made it click.

people recommended it
3
separate months
3
strong recommendations
1
discussed on HN
2016–2021
“I saw a video by MPJ/Funfunfunction [0] and it finally made sense.”
— k__, Oct 2021, in “Functors, Applicatives, and Monads in Pictures (2013)”

What HN commenters said

4 Hacker News comments link this video. Each one links back to its thread.

k__Oct 2021Strongly recommends

I read this example years ago, and it didn't clear anything up for me. After half a year of trying to understand monads, I saw a video by MPJ/Funfunfunction [0] and it finally made sense. [0] ▶ this video

in “Functors, Applicatives, and Monads in Pictures (2013)” · View on HN

icc97Feb 2018Recommends

Here's a half baked explanation, as in just the flatmap part. map is understood in javascript. So you 'just' need to make the leap to flatmap. Which is mapping something and flattening the result. So still you need to learn is what flatten is. But that's not too hard to learn. Try the funfunfunction video [0] [0]: ▶ this video

in “JavaScript Promises Discussion: Make Them Monadic? (2013)” · View on HN

intellectableJul 2016Recommends

I like how mpj explains it. Monad - FunFunFunction #21 ▶ this video Furthermore, the creator of Elm has a fun explanation too. Evan Czaplicki - Let's be mainstream! User focused design in Elm - Curry On [link] More serious computer scientist explains monads in the following. Erik Meijer: Functional Programming [link] and here too [link]

in “Functional Programming Jargon” · View on HN

cosinetauMar 2017Cites it

A nomad is something that goes "nom!" ;) A monad is basically an function, in the algebra sense, that will take a set of input, and map it to a different output. That's the most simple definition I can give without getting into the math, and it's been a minute since I've really gotten into Group theory. Maybe through a Haskell tutorial for some hands-on guidance? [link] ▶ this video

in “Attitudes That Lead to Maintainable Code” · View on HN

Topics & tags

Functional programmingWeb developmentmonadsfunctional programmingflatmapfunctorsjavascript