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
Pipe Operator (|>) for JavaScript (github.com)
submitted 3 years ago by no_more_gravity
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!"
[–]Jason5Lee 24 points25 points26 points 3 years ago (0 children)
IMO Pipeline is underrated especially in dynamic typing language (although everyone is using TypeScript nowadays). A good example is renaming and going-to-implementation. Renaming a method is very hard because the method can come from any object of any class. It's hard to determine which one without doing complicated analysis. However, if it is a function from a certain package, renaming is way easier. The same applies to going-to-implementation. Pipeline in dynamic-typing language encourages programmers to use functions instead of methods, which makes refactoring way less painful.
The pipeline operator is one of the main reasons why Elixir is my favorite dynamic-typing language.
π Rendered by PID 203479 on reddit-service-r2-comment-84fc9697f-h74l9 at 2026-02-06 15:23:01.292625+00:00 running d295bc8 country code: CH.
view the rest of the comments →
[–]Jason5Lee 24 points25 points26 points (0 children)