10. The Way of the carpenter is to become
proficient in the use of his tools,
first to lay his plans with a true measure and
then perform his work according to plan.
-Go Rin No Sho
12. SW Craftsman Tools: Tdd
Test-driven development (TDD) is a
software development technique that relies
on the repetition of a very short development
cycle
http://en.wikipedia.org/wiki/Test-driven_development
13. Tdd
first the developer writes a failing automated
test case that defines a desired improvement
or new function
http://en.wikipedia.org/wiki/Test-driven_development
14. Tdd
then produces code to pass that test
http://en.wikipedia.org/wiki/Test-driven_development
15. Tdd
and finally refactors the new code to
acceptable standard
http://en.wikipedia.org/wiki/Test-driven_development
36. Code kata
Kata ( or literally: "form") is a Japanese
word describing detailed choreographed
patterns of movements practised either solo
or in pairs.
42. Kata 9: Back to Checkout
http://codekata.pragprog.com/2007/01/kata_nine_back_.html
Item Unit Special
Price Price
--------------------------
A 50 3 for 130
B 30 2 for 45
C 20
D 15
43. total with no special offers
it "is zero when nothing is scanned"
it "is 50 when A is scanned"
it "is 80 when AB is scanned"
it "is 115 when CDBA is scanned"
44. total when A is on special offer
it "is 130 when AAA is scanned"
it "is 180 when AAAA is scanned"
it "is 260 when AAAAAA is scanned"
45. total when A and B are both in
special offer
it "is 175 when AAABB is scanned"