Class 01 Reading Node Ecosystem - morgan-401-advanced-javascript/seattle-javascript-401n14 GitHub Wiki
Read
node module wrapper
https://nodejs.org/docs/latest/api/modules.html#modules_the_module_wrapper
(function(exports, require, module, __filename, __dirname) { // Module code actually lives in here });
a gentle intro to tdd in js
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.
getting started with nodeJS on travisCI
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
Skim
about v8
https://v8.dev/ V8 is Google’s open-source high-performance JavaScript and WebAssembly engine
just another guide to ES6
https://medium.com/sons-of-javascript/javascript-an-introduction-to-es6-1819d0d89a0f#.wb7rj1gin
node and es6 docs
https://nodejs.org/en/docs/es6/
about package.json
https://docs.npmjs.com/files/package.json
npm scripts as build tools
https://www.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool/
npm scripts docs
https://docs.npmjs.com/misc/scripts
Watch
TDD in JS
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
what is npm
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.
Bookmark
ES6 Features
http://es6-features.org/#ClassInheritance