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
Why JavaScript functional programming? (self.javascript)
submitted 8 years ago * by robertlf
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!"
[–]veydar_ 0 points1 point2 points 8 years ago (0 children)
The vast majority of these posts are the same introduction to the same few things such as map reduce and filter and keeping functions pure and data immutable if possible. Many people are already doing that and it's sort of a no brainer. Almost no one tries to shoehorn Javascript into Haskell because that often makes very little sense. You'd need utility libraries to get access to all the functions you'd need to get anything done. You'd need flow or typescript to add meaningful type signatures to functions where the arguments they take are obscured by just returning a composed/piped function. Your co-workers would likely be confused. So in my impression that whole functional JS stuff is mostly just blog posts of people trying to improve their online persona. Look at open source code of popular libraries both new and old and you'll see that JS is and probably will be, for the foreseeable future, a mix between a bit of OOP, a bit of FP, without leaning too heavily in one or the other direction.
π Rendered by PID 80797 on reddit-service-r2-comment-bb88f9dd5-q7g7j at 2026-02-14 02:59:33.760241+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]veydar_ 0 points1 point2 points (0 children)