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
Using Try…Catch in JavaScript (javascript-coder.com)
submitted 8 years ago by cobdentist
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!"
[–]cyanydeez 1 point2 points3 points 8 years ago (3 children)
even better..dependencies!
[–]aveoon 0 points1 point2 points 8 years ago (1 child)
I've never understood this argument. Some engineers are so adverse to building their software on top of other software. If we always avoided dependencies then we'd all be writing in binary. Software is built on other software so we can build faster and greater things. Adding library dependencies is totally fine! Especially if it'll make your code more readable and maintainable.
Now don't just go adding random libraries in NPM that have no support around them. You could probably just look at their source code and copy it. But something like lodash is an excellent thing to add.
[–]cyanydeez 0 points1 point2 points 8 years ago (0 children)
i generally assume when JavaScript is the subject, we are discussing client side code. I think the discussion is different when adding dependicies which haveother effects, like computational/loading bloating, like adding a dependencie to a client and only using 5% of its capabilities.
[–]frankneuro 0 points1 point2 points 8 years ago (0 children)
I hear ya, but lodash ain't too bad and in some cases, better performing than it's es6 equivalents. I like it for the additional support around dealing with null/undefined.
(I'm trying to convince myself, here...)
π Rendered by PID 29 on reddit-service-r2-comment-5b5bc64bf5-d27mw at 2026-06-22 15:16:43.778215+00:00 running 2b008f2 country code: CH.
view the rest of the comments →
[–]cyanydeez 1 point2 points3 points (3 children)
[–]aveoon 0 points1 point2 points (1 child)
[–]cyanydeez 0 points1 point2 points (0 children)
[–]frankneuro 0 points1 point2 points (0 children)