zalas / codeclub
A codeclub starting point
Installs: 31
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires (Dev)
- phpspec/phpspec: ^2.1
This package is auto-updated.
Last update: 2020-02-05 08:27:08 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
- http://codingdojo.org/cgi-bin/wiki.pl?KataCatalogue
- http://katas.softwarecraftsmanship.org/
- http://codekatas.org/
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