Written to serve as the basis for a JavaScript Code Kata.
See it running.
If you want to do the Kata, please do not search for the implementation of the missing functionality. Try to solve it by yourself first.
In the lib directory of the master branch of the repository, implement all the functions that throw a TODO string. Write tests for your functions as well. The tests are located in test/unit and test/integration directories. You can run the tests by opening the test suite in your browser.
TDD is a good practice for doing the Kata. First, choose a function to implement, then
- write a simple test for it
- see the test fail when running the test suite
- write just enough implementation for the test to pass
- refactor, splitting the function into smaller functions if necessary (write tests for those functions as well)
- write another, but more complex, test for the function
- goto 2 if the function does not meet the requirements
A Rakefile
exists for executing common project tasks. See the
available tasks by running rake -T
in the project's root
directory. Using rake requires a Ruby environment.
- solution-ref – the solution made when writing the basis for the Kata originally
- solution-jkl-dojo – the solution made at Agile Finland's coding dojo event on 17th August 2011 in Jyväskylä