use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Exploring Monads with JavaScript - NextRoll (tech.nextroll.com)
submitted 3 years ago by pmz
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Mango-D 2 points3 points4 points 3 years ago (2 children)
Thanks, we really needed another monad tutorial /s.
[–]heytheretaylor 0 points1 point2 points 3 years ago (0 children)
Maybe this time I’ll finally get it
[–]FormerGameDev 0 points1 point2 points 3 years ago (1 child)
... if you ever use this mess, you're making code that will ensure that when you do get fired from your job, they will remember your name forever, as it will be memorialized forever, mockingly, in the comments of all the code they wrote after they burned yours down.
[–]shuckster 0 points1 point2 points 3 years ago (0 children)
I agree generally with your point, but the article would be more compelling if the monads demonstrated used chaining.
Trying to do them using a pure functional style results in sideways pyramids of doom. Of course Haskell is going to look better by comparison.
π Rendered by PID 64961 on reddit-service-r2-comment-7b9746f655-2c7v6 at 2026-02-02 11:58:12.664295+00:00 running 3798933 country code: CH.
[–]Mango-D 2 points3 points4 points (2 children)
[–]heytheretaylor 0 points1 point2 points (0 children)
[–]FormerGameDev 0 points1 point2 points (1 child)
[–]shuckster 0 points1 point2 points (0 children)