23. How did your choice of
language help/hurt?
Did you change
What tests did you drivers at good
start with?
frequency?
Which tests didn’t
help you? How did you determine
next test?
How did the solution
end up looking?
29. How did your choice of
language help/hurt?
Did you change
What tests did you drivers at good
start with?
frequency?
Which tests didn’t
help you? How did you determine
next test?
How did the boundary
conditions affect your
test and code?
31. Kata: Yahtzee
({1,1,1,1,1}, «ones»} => 5
({1,1,1,1,1}, «sixes»} => 0
({1,1,1,1,1}, «yahtzee»} => 50
Ones, twos, threes, fours, fives, sixes
Pair, two pairs, three of a kind, four of a kind, full house
Yahtzee
Little straight, big straight
Chance
33. How did your choice of
language help/hurt?
Did you change
What tests did you drivers at good
start with?
frequency?
Which tests didn’t
help you? How did you determine
next test?
What is ({2,2,3,6,6}, «pair»)?
37. How did your choice of
language help/hurt?
Did you change
What tests did you drivers at good
start with?
frequency?
Which tests didn’t
help you? How did you determine
next test?
How did you implement
rules for «IV» etc?
54. Testing?
How did you mess up?
How did you cheat?
Which questions did
you solve?
Annoying questions?
Teamwork?
55. Thank you
johannes@brodwall.com
http://johannesbrodwall.com
http://twitter.com/jhannes
Notas do Editor
Note to translator: Here, I willexplainhow pair programmingcanwork in practice:One person writes a failing test and theother person writesthecode to make it pass. Thenthe person whomadethe test pass writesthenext test.In theexamplewithme and Boris, weswitched «drivers» (the person at thekeyboard) aboutonce a minute. On real lifeproject, I usuallyexperiencethatweswitch drivers everytenminutes or so.It’s alsoimportant to refactorbetween tests. I like to onlyrefactorwhenthecode is green. This way I knowthatthecodedoesn’t stop working. Therearetwoways to thinkaboutthis:Either, ifyoucan, refactorthecode and the tests a little to «getready» for thenext testOr, ifyouseethatyoucan’t make the test pass, commentout (or @Ignore) the test and refactoron green.