We all know that modules are in our future. ECMAScript.Next modules (aka "Harmony" modules) will start appearing in browsers in early 2012. Too bad Harmony modules won't be universal 2021 when IE9 will finally be dead.
No need to wait! AMD and CommonJS Modules/1.1 are fully supported in a wide variety of environments already. But why are there two standards? Which one should I pick?
We'll take a quick look at each of the formats, compare and contrast their features, discuss the benefits of using modules now, and finally draw some conclusions.