《RequireJS History》 中 James Burke 把當初創(chuàng)建 require.js 的歷程寫的非常的清晰,事物的形成和發(fā)展的關(guān)鍵是:
There was enough break down in communication that it made it difficult to continue discussing AMD on the CommonJS list. However, there were enough of us web developers that still saw value in it, and there was still some API work to be done around loader plugins and callback-require that the amd-implement email list and amdjs Github group were formed to continue those discussions.
Through the amd-implement list, the callback-require and loader plugin APIs got more definition and a set of unit tests. More AMD implementations were made. Dojo was already in a code conversion process to use AMD, and other people like MooTools and EmbedJS picked it up. AMD loaders gained traction in the jQuery community among those that wanted modular JS loading capabilities.
AMD has a healthy ecosystem around it now. I continue to help push AMD forward by providing a solid implementation in RequireJS, and making sure it fits well with the web.
James Burke 今年結(jié)束了其在 Mozilla 的七年工作抑诸,搬去溫哥華做一個教育類 APP,貼一下離職信蜕乡,F(xiàn)acebook 用H5寫 iOS 的慘痛經(jīng)歷經(jīng)常被人提起层玲,其實 Mozilla 用H5寫 OS 的經(jīng)歷辛块,也是極其悲壯的:
After joining Mozilla Messaging just over seven years ago, I start a new job later this month. I am thankful for Alex's introduction to David that led to the Mozilla job.
I moved up to Vancouver to experiment with web-based messaging. That led to a few experiments at Mozilla, most recently the Firefox OS email app front end. However, all the experiments I worked on at Mozilla were eventually shut down. It is time for me to try working on a different kind of project.
I will be cheering on the efforts at Mozilla to improve the browser, and integrate web content better with native platforms via features like service workers and web manifests. I would like to see first class placement of web experiences on native platforms that work well with background updates, offline use. A Mozilla-infused Android distribution with web content front and center, some secure messaging and ties to local communities would be neat to see.
The web rendering developments in Servo are exciting too. Do you want to learn a neat language and help them out? Check out the first bugs list. The Rust and Servo communities are really great.
While I appreciate the value of platform work, it is more work for me than the flow I feel when building on web apps. So I am off to work on a web app that helps educators organize their classes. I still plan to do some light open source work on my own time, make sure I keep up maintenance releases for RequireJS related tools. But I will be busy with an exciting new job, and I will not have a lot of left over energy for a while. I will be staying in Vancouver.
Thank you Mozilla, and the people I worked with, for seven years. It changed my life. I recommend working at Mozilla particularly if you are a platform or systems developer. Or, just contributing in some way to support the great work of the Mozilla Foundation.
阮一峰寫過一個系列文章,在細節(jié)上已經(jīng)把 RequireJS 介紹的非常的詳細憨愉,瞬間降低了 require.js 的學(xué)習(xí)成本配紫,后文便不再贅述了:
Javascript模塊化編程(一):模塊的寫法
Javascript模塊化編程(二):AMD規(guī)范
Javascript模塊化編程(三):require.js的用法