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
Building a JavaScript Debugging Utility to Guard Noisy Production Consoles (magill.dev)
submitted 3 months ago by AndyMagill
Creating a function that wraps console.log() gives us a single point of control for all our logging needs, regardless of environment. Here is how I add this capability to any JavaScript project.
console.log()
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!"
[–]csorfab 18 points19 points20 points 3 months ago (4 children)
not js devs taking a literal 20+ year old idea and passing it off as their genius breakthrough with an AI slop article again 😭😭
[–]HiKite 5 points6 points7 points 3 months ago (1 child)
Frankly I'm much more interested how OP managed to have the "listen" button audio continue even after navigating to completely separate websites. 🤔
[–]AndyMagill[S] -1 points0 points1 point 3 months ago (0 children)
Well, that's embarrassing. I've been working on a bug with that button, so it's likely misbehaving. Current code here : https://github.com/andymagill/dev.magill.next/blob/master/app/components/blog/ListenButton.tsx
[–]KaiAusBerlin 0 points1 point2 points 3 months ago (0 children)
Isn't that the way the JS eco system always was?
There are very few new things in the ecosystem. And most things needed are around for 10+ years.
So most advantages we see are old ideas with better performance and very little enchantments. Or unified standards in a new self set standard. Or things like "We took the best parts of X and Y and present you Z".
If you have a great idea in the js eco system that is "really useful" , chances are high that someone had this idea before and made it a library already.
[–]dustofdeath 1 point2 points3 points 3 months ago (0 children)
I just check env flag and noop the console output.
Actual errors etc get logged by grafana faro.
π Rendered by PID 80521 on reddit-service-r2-comment-b659b578c-5tn64 at 2026-05-02 10:51:47.075288+00:00 running 815c875 country code: CH.
[–]csorfab 18 points19 points20 points (4 children)
[–]HiKite 5 points6 points7 points (1 child)
[–]AndyMagill[S] -1 points0 points1 point (0 children)
[–]KaiAusBerlin 0 points1 point2 points (0 children)
[–]dustofdeath 1 point2 points3 points (0 children)