Skip to content

jelz/10-things-about-amd

Repository files navigation

10 things about AMD

TOC

  1. Simplified CommonJS Wrapper - don't maintain long list of dependencies
  2. Cajon - get rid of module wrapper at all
  3. Circular Dependencies - avoid, detect and live with those
  4. Almond - don't keep XHR loading code when in production
  5. text! - don't store all your templates in one template überfile (applies to any other text resource, too)
  6. i18n! - localize JS apps right way
  7. jQuery - use jQuery in an AMD manner
  8. Packages - find the best place for every piece of code
  9. Bootstrap - customize your libraries with no effort (applies to many other libs, too)
  10. browserify - know alternative

Slides are...

... here

Server

You need running webserver to be able to use XHR. Just jump to repository root, type python -m SimpleHTTPServer and visit localhost:8000.

Binaries

First - grab node.js from nodejs.org. Then:

  • bower: npm install -g bower
  • madge: npm install -g madge
  • graphviz: aptitude install graphviz (Debian/Ubuntu)
  • r.js: npm install -g requirejs
  • browserify: npm install -g browserify

Vendors

If directory contains (can be both):

  • bower.json, then install vendors with bower install
  • package.json, then install vendors with npm install

License

MIT

About

10 things about AMD (that you should know) || slides ==>

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published