|
| 1 | +# require(modules) |
| 2 | +## with references to NPM |
| 3 | + |
| 4 | +These break code down into managable, easy to read chunks. |
| 5 | + |
| 6 | +What are modules? |
| 7 | + |
| 8 | +These are used to compose large, complex applications without complicating your brains. |
| 9 | + |
| 10 | +What are modules? |
| 11 | + |
| 12 | +There are over 100,000 of these with Open Source licenses, available for you to require in your application. |
| 13 | + |
| 14 | +What are modules? |
| 15 | + |
| 16 | +You can use these to compose applications that run on the back-end, and the front-end. |
| 17 | + |
| 18 | +WHAT ARE MODULES! |
| 19 | + |
| 20 | +Correct. |
| 21 | + |
| 22 | +Modulaity in code writing was given the first class treatment with Node.js. |
| 23 | + |
| 24 | +Node.js ships with the default package manager, [NPM](http://npmjs.com). |
| 25 | + |
| 26 | +NPM isa library, and it is filled with modules. |
| 27 | + |
| 28 | +A galore of open source modules await your eager research. |
| 29 | + |
| 30 | +When your application calls for some specific task, it is usually best to see if somebody else has already written a module for it. |
| 31 | + |
| 32 | +Modules allow you to do things with your apps on an abstract level--they take a complex problem, which you yourself could probably never solved, and reduce it to a simple interface. |
| 33 | + |
| 34 | +Therefor, understanding modules and how to use them increases your ability to program. |
| 35 | + |
| 36 | +Plus, you can always read a module to learn how the author handled the task. |
| 37 | + |
| 38 | +There are a handful of modules that make up the core of Node.js |
| 39 | + |
| 40 | +Let's look at those modules. |
| 41 | + |
| 42 | +Next, let's do some searches for modules; what kind of modules should we search? |
| 43 | + |
| 44 | +Not all modules are published; we write our entire application with modules so we can reason about specific things, and maintain large amounts code. |
| 45 | + |
| 46 | +This is how you write a module. |
| 47 | + |
0 commit comments