jakzal/codeclub

This package is abandoned and no longer maintained. The author suggests using the zalas/codeclub package instead.

A codeclub starting point

Installs: 26

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:project

v1.0.3 2016-07-13 14:58 UTC

This package is auto-updated.

Last update: 2019-02-20 19:26:32 UTC


README

Initialize your code club project:

composer create-project zalas/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