Created
February 19, 2015 16:03
-
-
Save stkrzysiak/e820ed78be9c2d0e73fe to your computer and use it in GitHub Desktop.
Learning Javascript modules, AMD, CommonJS, RequireJS, etc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JS Module Learning Notes/Links | |
Below is a summary of how I approached learning about JS module loading. | |
https://www.youtube.com/watch?v=szJjsduHBQQ | |
A recent video on ES6 module loading, which seem to be the buzz words I seek to | |
understand. Made it through 20 minutes, which had it's benefits, but I relized I | |
should probably nderstand more about the AMD api and CommonJS and some background | |
info so I ended up pausing the video.... | |
http://requirejs.org/docs/why.html | |
Then I came here... how simple, one page and boom! JS module expert! | |
http://requirejs.org/docs/whyamd.html | |
Ok, now I'm really getting to understand.... Oh wait, the module pattern, detour. | |
http://www.adequatelygood.com/JavaScript-Module-Pattern-In-Depth.html | |
http://stackoverflow.com/questions/1470488/what-is-the-function-of-the-var-keyword-and-when-to-use-it-or-omit-it#comment1319875_1470488 | |
http://stackoverflow.com/questions/1013385/what-is-the-difference-between-a-function-expression-vs-declaration-in-javascrip | |
http://archive.oreilly.com/pub/a/javascript/excerpts/javascript-good-parts/awful-parts.html | |
Ok, back to http://requirejs.org/docs/whyamd.html | |
.... so that's what named amd is?!? Hmm, the sugar section gave me insight on the | |
endless ['dependency1', 'dependency2'....] stuff in Ember. | |
To summarize, start with http://requirejs.org/docs/whyamd.html and if you can make | |
it through, call it a success and get back to work. The path I took was just | |
that, a path, not necessarily the best one. But really, it's all summed up on | |
that one page, with possibly a need for referencing: | |
http://www.adequatelygood.com/JavaScript-Module-Pattern-In-Depth.html | |
which really helped me, and if you must know the reasons behind requirejs: | |
http://requirejs.org/docs/why.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment