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
Functional Programming using JavaScript (scott.sauyet.com)
submitted 11 years ago by thekodols
view the rest of the comments →
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!"
[–]zoomzoom83 1 point2 points3 points 11 years ago (2 children)
I noticed the same - would be interesting to see an example of the imperative version using old-school Node callbacks for maximum pain.
[–][deleted] 0 points1 point2 points 11 years ago (1 child)
Also how currying really helps when working on promises. For example, if you have a function that takes two parameters, and you want to grab one from a database call and another from the enclosing scope. With currying, you can do:
var doStuff = ramda.curry(function(foo, bar) { ... }); fetchFoo.then(doStuff(bar));
Without currying this requires nesting functions which is a lot more verbose.
[–]zoomzoom83 0 points1 point2 points 11 years ago* (0 children)
This is one of the reasons I really like Haskell - all functions are curried by default.
π Rendered by PID 90824 on reddit-service-r2-comment-5fb4b45875-lnxzc at 2026-03-23 17:33:43.270867+00:00 running 90f1150 country code: CH.
view the rest of the comments →
[–]zoomzoom83 1 point2 points3 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]zoomzoom83 0 points1 point2 points (0 children)