This is my first Kata ever so I wanted to apply a few concepts that I have been playing with lately.
Basically I want to use a Testing approach. With TDD we test the state. With BDD we test the interactions.
As in this kata we will not have many interaction we will mostly make use of the TDD technique (Mocks will not be used).
- Think before all
- Write a design
- Test before coding
- Use preemptive commits :
- Talk about the feature, not about yourself: Tell me what the software does (not what you did)
- Don’t refer to the past: don’t describe what the state of the software was: tell what the state is right now. Use the present tense.
- First: finish the Kata. After that: Refactor
- do small refactors —> tests always green. (commit often)
- Follow [SOLID](http://en.wikipedia.org/wiki/SOLID_(object-oriented_design) principles: single-responsibility, ...
- Do a Post mortem analysis to review the work done with my friend Luis.
- Write down the conclusions of this Kata
- NodeJS
- jasmine : testing
- istanbul : test coverage
I think that 3 simple modules will do the work:
- KataFizzBuzz : main module to drive the flow with 2 dependencies
- ListGenerator.js : module to encasulate the business logic that generates the FizzBuzz list.
- Display.js : module that displays the FizzBuzz list
npm install
node src/app.js
TBD
TBD