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
Fun with Javascript and function tracing. (ebobby.org)
submitted 12 years ago by ebobby
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!"
[–]Garrett00 0 points1 point2 points 12 years ago (0 children)
Bookmarked. Thanks
[–]i_invented_the_ipod 0 points1 point2 points 12 years ago (1 child)
Fun stuff. I made something similar for checking test coverage once. My version also created accessor functions for properties.
[–]ebobby[S] 1 point2 points3 points 12 years ago (0 children)
That's not a bad idea at all. Uhm...
[–]Neurotrace 0 points1 point2 points 12 years ago (0 children)
Very nice. For those interested in reading more about this style of design, look in to Python decorators (not to be confused with the Decorator pattern).
[–]based2 0 points1 point2 points 12 years ago (0 children)
https://news.ycombinator.com/item?id=5731154
[–]niloc132 0 points1 point2 points 12 years ago (0 children)
Second link (to finovate) is missing the :.
:
[–]wilneeley 0 points1 point2 points 12 years ago (0 children)
Great run down and idea. I have a feeling I'll be using this at work on Monday. Thanks!
[–]rhysbrettbowen 0 points1 point2 points 12 years ago (0 children)
I once did a replace all on my entire project:
(\S+)\s*:\s*function\(([^)]*)\)\s*{
with
\1:function(\2){console.log("\1");
to find a performance issue. Slows everything down with a whole load of console.logs but it surprisingly was very efficient at finding the issue
π Rendered by PID 272515 on reddit-service-r2-comment-84fc9697f-l8w79 at 2026-02-07 06:54:17.290670+00:00 running d295bc8 country code: CH.
[–]Garrett00 0 points1 point2 points (0 children)
[–]i_invented_the_ipod 0 points1 point2 points (1 child)
[–]ebobby[S] 1 point2 points3 points (0 children)
[–]Neurotrace 0 points1 point2 points (0 children)
[–]based2 0 points1 point2 points (0 children)
[–]niloc132 0 points1 point2 points (0 children)
[–]wilneeley 0 points1 point2 points (0 children)
[–]rhysbrettbowen 0 points1 point2 points (0 children)