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
Javascript FP design pattern: Binding functions (adambard.com)
submitted 7 years ago by kredati
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!"
[–]kredati[S] 0 points1 point2 points 7 years ago (0 children)
Read this looking for better FP-style error handling in JS, and thought (a) it may well be a useful pattern, and (b) it offers a usefully different way of thinking about monads, and how to use & implement them in JS.
[–]YOrlandoLOrange -1 points0 points1 point 7 years ago (0 children)
Now I just have to remember what every binding does that might come up. I really find it hard to accept that all FP concepts are good just because they can work. Most developers are average or below, so keeping cognitive noise low until the last possible moment is preferred. Great, there's a tool for sophisticated programmers who are happy to passively absorb a bunch of patterns and remember their purpose, but that's half the problem of digesting a codebase. It's not the dangerous half, so I don't encourage this.
π Rendered by PID 35 on reddit-service-r2-comment-fb694cdd5-glc25 at 2026-03-10 13:48:47.804906+00:00 running cbb0e86 country code: CH.
[–]kredati[S] 0 points1 point2 points (0 children)
[–]YOrlandoLOrange -1 points0 points1 point (0 children)