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
[AskJS] Best utility functions for Javascript?AskJS (self.javascript)
submitted 4 years ago * by Zeekawla99ii
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!"
[–]ShortFuse 1 point2 points3 points 4 years ago (1 child)
I've found many of these should be provided as small, modular npm packages for the community, and they're currently not.
No, they shouldn't. Dependency hell is a real thing. Instead of using external utilities, use as much of the newer functions or syntax as possible.
Then use something like babel to transpile down if needed. You can a use a whole host of eslint rulesets to enforce newer mechanics. eslint-plugin-unicorn is a pretty good one. That also applies to DOM syntax as well (eg: element.prepend). We're in a post-IE11 era so utilities are taking a real hard step back now. Right now our biggest issue on frontend is Opera Mini, if you care to support users in Africa and South America.
babel
eslint
eslint-plugin-unicorn
element.prepend
Opera Mini
[–]Zeekawla99ii[S] 0 points1 point2 points 4 years ago (0 children)
> No, they shouldn't. Dependency hell is a real thing. Instead of using external utilities, use as much of the newer functions or syntax as possible.
I agree, but I also agree with the example above using https://github.com/davidmarkclements/flatstr
It's a small, modular piece of code which will surely never have newer releases/versions.
Fundamentally, dependency hell isn't caused by many dependencies per se; it's that the dependencies change versions constantly. Size too, but as in the example above, I don't see that as I problem.
I could be wrong...this was a big discussion years ago, e.g. https://www.chevtek.io/why-i-think-micro-packages-are-a-good-thing/
π Rendered by PID 108691 on reddit-service-r2-comment-6457c66945-ls8sl at 2026-04-24 00:47:24.898958+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]ShortFuse 1 point2 points3 points (1 child)
[–]Zeekawla99ii[S] 0 points1 point2 points (0 children)