Brian Beckman: Don't fear the Monad
Channel:jasonofthel33t · Length:1:07:10 · Published:2012-11-21 · Views:415390
Summary
Microsoft's Brian Beckman gives an hour-long, whiteboard-style walk through monads, building from function composition and monoids using school-level math. It is aimed at practicing programmers rather than category theorists.
Why HN recommends it
HN repeatedly recommends it as the clearest and most correct beginner explanation of monads, with several commenters saying it finally made them click.
This video is all you, as a practicing programmer, need to know about monads and it's just 1 hour long. — HN, 2015
Functional programming · Logic & formal methods
Subtitles (excerpt)
Brian Charles how are you I'm great how are you good so there's been a lot of talk recently about functional programming and and a couple of the videos that I did from Jo jao yes uh in particular gilad yeah was talking about uh gilad braa was talking about how monads could be used to solve you know potentially a UI problem in half right absolutely so of course me I being who I am an imperative type programmer right was a little bit confused and I know there's a lot of people out there so why don't you why don't you take us through and teach us about whatever's on your mind regarding monads talk to us what I want to do is take the mystery out of monads monads without mystery or maybe monads without misery okay because if if you've looked at link or you've looked at F SHP or many small a much smaller number have looked at hascal you've encountered monads and scary the first time you encounter them the main reason they're scary is you read the papers and they tell you oh well you need to know category Theory before you can understand this okay and while that strictly speaking is true it is not true that you need to know category Theory to understand how monads work what they're good for and even better yet how
On Hacker News
I don't know category theory, so I defer to more knowledgeable people here, but that sounds strange: "Functor it understands how to take doStuff and execute it on the value inside itself, then spit out a new Optional. You don't lose the int-ness or optional-ness." So if I map a function, that takes an int and returns a string over an array of ints, this array stops being a functor? Or is it just … — kika, 2016-04
To be fair, (I think) you don't need to know category theory to successfully apply FP principles and/or use any functional language. I had a great (GREAT) success at using erlang not only not knowing what monad is, but even not knowing about existence of category theory at all, leave aside monads, monoids, functors, etc. You also don't need to know category theory to understand what monad is [0] … — kika, 2015-08
Good tutorial I think and I also appreciated reading the beginning of [LINK] and watching "Don't fear the Monad" [VIDEO] — lkuty, 2024-06
[VIDEO] I found Brian Beckman's video Don't Fear the Monad was extremely helpful for understanding monads as a practical user. I now use them everywhere. I don't know the first thing about category theory. — omginternets, 2022-06
Thats me here too! >.< Yeah the hidden subtext here was my presumption in that suggestion was someone was learning monads in Haskell and has at least a basic understanding of Haskell. Sorry if those papers threw you into the deep end. Monads really were thrown into play due to trying to make a pure functional programming language useful. I found the more mathematical explanation a lot easier than… — mitchty, 2018-05
Related videos
- Dmitry Vyukov — Go scheduler: Implementing language with lightweight concurrency · Hydra · 1:00:39
- How to Speak · MIT OpenCourseWare · 1:03:42
- Google Developers Day US - Python Design Patterns · GoogleDeveloperDay · 44:03
- Old pinball machines are amazingly complex · Technology Connections · 50:08
- Edwin Brady - Idris 2 - Type-driven Development of Idris · Curry On! · 40:38
- Alan Kay at OOPSLA 1997 - The computer revolution hasnt happened yet · Jeff Gonis · 1:04:33
- Classic Game Postmortem: Ultima Online · GDC Festival of Gaming · 59:47
- Vectors | Chapter 1, Essence of linear algebra · 3Blue1Brown · 9:51
- 8 Bit & '8 Bitish' Graphics-Outside the Box · GDC Festival of Gaming · 1:25:34
- Finding the Missing Memristor - R. Stanley Williams · The Qualcomm Institute · 47:52
- How the Quantum Eraser Rewrites the Past | Space Time | PBS Digital Studios · PBS Space Time · 14:40
- QuakeCon 2011 - John Carmack Keynote · QuakeCon Official · 1:26:38
- Ruby Conf 12 - Y Not- Adventures in Functional Programming by Jim Weirich · Confreaks · 53:21
- The Soul of Erlang and Elixir • Sasa Juric • GOTO 2019 · GOTO Conferences · 42:02
- "Simple Made Easy" - Rich Hickey (2011) · Strange Loop Conference · 1:01:38
- "Making Impossible States Impossible" by Richard Feldman · elm-conf · 25:06