學(xué)習(xí)筆記《RequireJS》

《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的用法

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末躺孝,一起剝皮案震驚了整個濱河市括细,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌戚啥,老刑警劉巖奋单,帶你破解...
    沈念sama閱讀 218,122評論 6 505
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異猫十,居然都是意外死亡览濒,警方通過查閱死者的電腦和手機,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,070評論 3 395
  • 文/潘曉璐 我一進店門拖云,熙熙樓的掌柜王于貴愁眉苦臉地迎上來贷笛,“玉大人,你說我怎么就攤上這事宙项》啵” “怎么了?”我有些...
    開封第一講書人閱讀 164,491評論 0 354
  • 文/不壞的土叔 我叫張陵,是天一觀的道長汇荐。 經(jīng)常有香客問我洞就,道長旬蟋,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 58,636評論 1 293
  • 正文 為了忘掉前任架忌,我火速辦了婚禮饰恕,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘雹嗦。我一直安慰自己,他們只是感情好,可當我...
    茶點故事閱讀 67,676評論 6 392
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著,像睡著了一般。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 51,541評論 1 305
  • 那天失乾,我揣著相機與錄音仿贬,去河邊找鬼蜓氨。 笑死,一個胖子當著我的面吹牛港令,可吹牛的內(nèi)容都是我干的击吱。 我是一名探鬼主播姨拥,決...
    沈念sama閱讀 40,292評論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼憨奸,長吁一口氣:“原來是場噩夢啊……” “哼那婉!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起呛谜,我...
    開封第一講書人閱讀 39,211評論 0 276
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后单旁,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體琅豆,經(jīng)...
    沈念sama閱讀 45,655評論 1 314
  • 正文 獨居荒郊野嶺守林人離奇死亡冻押,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 37,846評論 3 336
  • 正文 我和宋清朗相戀三年锹锰,在試婚紗的時候發(fā)現(xiàn)自己被綠了园蝠。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片陪汽。...
    茶點故事閱讀 39,965評論 1 348
  • 序言:一個原本活蹦亂跳的男人離奇死亡澳骤,死狀恐怖摊册,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情重斑,我是刑警寧澤窥浪,帶...
    沈念sama閱讀 35,684評論 5 347
  • 正文 年R本政府宣布拆融,位于F島的核電站趟脂,受9級特大地震影響累澡,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜愧哟,卻給世界環(huán)境...
    茶點故事閱讀 41,295評論 3 329
  • 文/蒙蒙 一肥矢、第九天 我趴在偏房一處隱蔽的房頂上張望甘改。 院中可真熱鬧名挥,春花似錦榄融、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,894評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至沈自,卻和暖如春酌儒,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背枯途。 一陣腳步聲響...
    開封第一講書人閱讀 33,012評論 1 269
  • 我被黑心中介騙來泰國打工忌怎, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人酪夷。 一個月前我還...
    沈念sama閱讀 48,126評論 3 370
  • 正文 我出身青樓榴啸,卻偏偏與公主長得像,于是被迫代替她去往敵國和親晚岭。 傳聞我的和親對象是個殘疾皇子鸥印,可洞房花燭夜當晚...
    茶點故事閱讀 44,914評論 2 355

推薦閱讀更多精彩內(nèi)容