On Windows install yarn
nvm use v7.9.0
git clone [email protected]:wpannell/ibm-cloud-garage-method-developer-bootcamp.git app
cd app
yarn install
yarn run lint
yarn run spec
yarn run tdd
In three separate Bash shells:
yarn run test:watch
yarn run lint:watch
yarn run spec:watch
- Passes the tests
- Reveals intention
- No duplication
- Fewest elements
({}–>nil) no code at all->code that employs nil
(nil->constant)
(constant->constant+) a simple constant to a more complex constant
(constant->scalar) replacing a constant with a variable or an argument
(statement->statements) adding more unconditional statements.
(unconditional->if) splitting the execution path
(scalar->array)
(array->container)
(statement->recursion)
(if->while)
(expression->function) replacing an expression with a function or algorithm
(variable->assignment) replacing the value of a variable.