Skeleton for JavaScript Coding Dojo
You should work in pairs:
- person A writes a test that fails
- person B implements the most basic code that makes the test green
- pair refactors the code to make it clean
- person B writes a test that fails
- person A implements the most basic code that makes the test green
- pair refactors the code to make it clean
- goto 1.
The next test you write should be the most basic case that breaks the code. The way you modify the code should be the most simple solution that fixes the test. Refactoring should happen when the tests are green. You should end up with clean code.
You should talk using the code, and discuss your ideas by writing a change.
Finishing the task is not a goal, but learning TDD, pair programming and the baby steps concept.