-
Notifications
You must be signed in to change notification settings - Fork 0
Class 01 Reading Node Ecosystem
https://nodejs.org/docs/latest/api/modules.html#modules_the_module_wrapper
(function(exports, require, module, __filename, __dirname) { // Module code actually lives in here });
https://jrsinclair.com/articles/2016/gentle-introduction-to-javascript-tdd-intro/ Three reasons to use TDD:
- It forces one to think
- It makes debugging easier
- It makes coding more fun Basic Steps in TDD:
- Red: Write a test and make sure it fails.
- Green: Write the simplest, easiest possible code to make the test pass.
- Refactor: Optimise and/or simplify the application code, making sure that all the tests still pass.
https://docs.travis-ci.com/user/languages/javascript-with-nodejs Main Topics: SPECIFYING NODE.JS VERSIONS SPECIFYING NODE.JS VERSIONS USING .NVMRC DEFAULT BUILD SCRIPT USING GULP DEPENDENCY MANAGEMENT EMBER APPS METEOR APPS METEOR PACKAGES NODE.JS V4 (OR IO.JS V3) COMPILER REQUIREMENTS
https://v8.dev/ V8 is Google’s open-source high-performance JavaScript and WebAssembly engine
https://medium.com/sons-of-javascript/javascript-an-introduction-to-es6-1819d0d89a0f#.wb7rj1gin
https://nodejs.org/en/docs/es6/
https://docs.npmjs.com/files/package.json
https://www.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool/
https://docs.npmjs.com/misc/scripts
http://www.letscodejavascript.com/ Notes: The essence of Software development is that you spend more time maintaining code than writing new code. So it is more important to decrease maintenance then to make it easier to write new code. How to Build Maintainable Code:
- Reproducible Code
- TDD 3.Refactoring and Evolutionary Design
- KISS- Keep it Simple
npm consists of three distinct components:
the website the Command Line Interface (CLI) the registry Use the website to discover packages, set up profiles, and manage other aspects of your npm experience. For example, you can set up Orgs (organizations) to manage access to public or private packages.
The CLI runs from a terminal, and is how most developers interact with npm.
The registry is a large public database of JavaScript software and the meta-information surrounding it.