- Hands-On Machine Learning with JavaScript
- Burak Kanber
- 274字
- 2021-06-25 21:38:17
The CommonJS initiative
In 2009, a Mozilla engineer named Kevin Dangoor realized that server-side JavaScript needed a lot of help in order to be useful. The concept of server-side JavaScript had already existed, but wasn't very popular due to a number of limitations, particularly in terms of the JavaScript ecosystem.
In a blog post written in January of 2009, Dangoor cited a few examples of where JavaScript needed some help. He wrote that the JavaScript ecosystem would need a standard library and standard interfaces for things such as file and database access. Additionally, the JavaScript environment needed a way to package, publish, and install libraries and dependencies for others to use, and also needed a package repository to host all of the aforementioned.
Out of all of this came the CommonJS initiative, whose most notable contribution to the JavaScript ecosystem is the CommonJS module format. If you've done any work with Node.js, you're probably already familiar with CommonJS: your package.json file is written in the CommonJS modules package specification format, and writing code like var app = require(‘./app.js’) in one file with module.exports = App in app.js is using the CommonJS module specification.
The standardization of modules and packages paved the way for a significant boost in JavaScript popularity. Developers were now able to use modules to write complex applications spanning many files, without polluting the global namespace. Package and library developers were able to build and publish new libraries of higher levels of abstraction than JavaScript's standard library. Node.js and npm would shortly grab onto these concepts and build a major ecosystem around package sharing.
- Java編程全能詞典
- Hadoop 2.x Administration Cookbook
- Hands-On Neural Networks with Keras
- UTM(統(tǒng)一威脅管理)技術(shù)概論
- 電腦上網(wǎng)直通車
- Hadoop Real-World Solutions Cookbook(Second Edition)
- 信息物理系統(tǒng)(CPS)測(cè)試與評(píng)價(jià)技術(shù)
- 氣動(dòng)系統(tǒng)裝調(diào)與PLC控制
- Windows Server 2008 R2活動(dòng)目錄內(nèi)幕
- 電腦日常使用與維護(hù)322問(wèn)
- Silverlight 2完美征程
- 重估:人工智能與賦能社會(huì)
- Redash v5 Quick Start Guide
- Hands-On DevOps
- 計(jì)算機(jī)硬件技術(shù)基礎(chǔ)學(xué)習(xí)指導(dǎo)與練習(xí)