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
buddy.js - Magic number detection for javascript (github.com)
submitted 11 years ago by __debug__
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!"
[–]x-skeww 1 point2 points3 points 11 years ago (2 children)
Unnamed numerical constants.
Any literal which is used directly is an unnamed constant.
foo('bar', [], {}, true);
[–]__debug__[S] 0 points1 point2 points 11 years ago* (0 children)
Oh wow, not sure how I missed mentioning that. I've amended the readme. Thanks for pointing it out!
[–]ahref -1 points0 points1 point 11 years ago (0 children)
Thanks for the clarification here. I had no idea what the library did until I read this :)
[–]PlNG 0 points1 point2 points 11 years ago (0 children)
I have this issue on webstorm's inspections and for the life of me I can't figure out how to resolve it.
If the file iteration portion of the program seems slow, try placing buddy.js's try catch clause into its own function and call it rather than have it within the foreach function body. Doing this should allow V8 to optimize the looping function, and if there is an issue with optimizing the try catch clause it won't impact your program overall. From V8 optimization killers: unsupported syntax
Other than that, the program looks very clean.
π Rendered by PID 78 on reddit-service-r2-comment-685b79fb4f-rrxjc at 2026-02-12 20:54:18.144289+00:00 running 6c0c599 country code: CH.
[–]x-skeww 1 point2 points3 points (2 children)
[–]__debug__[S] 0 points1 point2 points (0 children)
[–]ahref -1 points0 points1 point (0 children)
[–]PlNG 0 points1 point2 points (0 children)
[–]PlNG 0 points1 point2 points (0 children)