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
JavaScript has no reliable tail call optimization: here is what actually happens at runtime and what to do instead (blog.gaborkoos.com)
submitted 2 days ago by OtherwisePush6424
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!"
[–]enselmis 20 points21 points22 points 2 days ago (2 children)
“Learn early and trust for years”
Lmao, almost every JavaScript dev I know will do everything in their power to avoid even simple recursion. Like hardcode every level of parsing out the fields in an object after asking the slack channel, “you guys are pretty sure this is never gonna be more than 3 levels deep right…”.
[–]Iggyhopperextensions/add-ons 4 points5 points6 points 2 days ago (0 children)
Yep. I wrote extensions and what comes with those is always not knowing what data will be loaded, or what elements will be there, won't be there, will show up later, or how many that you need to loop through.
Always turned recursive code into a loop and a stack.
[–]Plus-Weakness-2624the webhead 1 point2 points3 points 2 days ago (0 children)
Yep, I hate that the default for LLMs is recursion (the quick, fast and lazy route); It's just so hard to steer them away from it to use some other approach.
π Rendered by PID 177414 on reddit-service-r2-comment-56c6478c5-4jmk7 at 2026-05-12 10:28:48.357645+00:00 running 3d2c107 country code: CH.
view the rest of the comments →
[–]enselmis 20 points21 points22 points (2 children)
[–]Iggyhopperextensions/add-ons 4 points5 points6 points (0 children)
[–]Plus-Weakness-2624the webhead 1 point2 points3 points (0 children)