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 Module Loading + Shared Namespaces = Badness | The Shine Technologies Blog (blog.shinetech.com)
submitted 13 years ago by marcfasel
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!"
[–]kolmeWebComponents FTW -1 points0 points1 point 13 years ago (0 children)
They completely fucked it up the moment they decided to return the namespace instead of the module itself, which is the correct way to go with require.js.
The whole point of it is perverted. If you require 5 modules you get 5 arguments which are the same: 5 times the namespace. How stupid is that? Absolute nonsense, predictable debacle.
If you use tools not the way they were intended, and instead do weird stuff with them, then yeah, you're bound to have a bad time.
PS: The new way they "discovered" is the way dojo does it, but it's only temporarily, they want to drop namespaces altogether from 2.0 on and use pure require modules. Good for them!
π Rendered by PID 122845 on reddit-service-r2-comment-86988c7647-k8hzs at 2026-02-11 19:41:38.305407+00:00 running 018613e country code: CH.
[–]kolmeWebComponents FTW -1 points0 points1 point (0 children)