A codeclub starting point

Installs: 12

Dependents: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

Type: project

v1.0.2 2014-04-01 12:11 UTC


Download composer:

curl -sS https://getcomposer.org/installer | php

Initialize your code club project:

php composer.phar create-project jakzal/codeclub

3 Laws of TDD

  • Don’t write any code unless you are making a failing test pass
  • Don’t add to the test more than enough to get a failure
  • Only write enough code to make the one failing test to pass

4 Rules of Simple Design

  • All tests must run and pass
  • Contains no duplication
  • Express the intent of the programmer
  • Minimise number of classes and methods

Code Kata

String calculator

  • Returns 0 when "0" is passed as a string
  • Returns 0 when no arguments are passed
  • Returns the bare number
  • Returns the sum of space separated strings
  • Returns the sum of white spaces separated string
  • Returns the sum of string with any separator