Upgrade to Pro — share decks privately, control downloads, hide ads and more …

TDD & Pairing at Craftsman Guild

TDD & Pairing at Craftsman Guild

7c2a83b93fe0e5f2ed4c95c59367259c?s=128

Amber Conville

March 05, 2013
Tweet

More Decks by Amber Conville

Other Decks in Education

Transcript

  1. IT’S TDD AND PAIRING TIME!!! Wednesday, March 6, 13

  2. SOME SIMPLE RULES 1. You are not allowed to write

    any production code unless it is to make a failing unit test pass. 2. You are not allowed to write any more of a unit test than is sufficient to fail; and compilation failures are failures. 3. You are not allowed to write any more production code than is sufficient to pass the one failing unit test. Wednesday, March 6, 13
  3. HOW TO PAIR Techniques to try: Drive/Navigator: One person types/mouses,

    the other navigates through test/code. Ping Pong: One person writes the test, then gives the keyboard to the other person. That person makes the test pass, then writes a new test, and passes the keyboard. Alien Hand Syndrome: One person keyboards, the other mouses. Don’t cheat and use keyboard shortcuts. Wednesday, March 6, 13
  4. WHAT ARE WE GONNA DO? 30 minute pairing sessions. Follow

    the three TDD rules and listen to the timer! We’ll have an optional challenge for each session and a quick retro for each. I’ll be wandering around spying on your code and offering irritating help. Switch pairs for each session, delete your code at the end. If you are new to TDD, pair with someone who is not. If you are a TDD expert, pair with someone who is new. Make sure half the pair has an already functioning environment/knows the chosen language. Wednesday, March 6, 13
  5. CONWAY’S GAME OF LIFE 1. Any live cell with fewer

    than two live neighbours dies, as if caused by under-population. 2. Any live cell with two or three live neighbours lives on to the next generation. 3. Any live cell with more than three live neighbours dies, as if by overcrowding. 4. Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction. Wednesday, March 6, 13
  6. GO! Wednesday, March 6, 13

  7. CONWAY’S GAME OF LIFE 1. Any live cell with fewer

    than two live neighbours dies, as if caused by under-population. 2. Any live cell with two or three live neighbours lives on to the next generation. 3. Any live cell with more than three live neighbours dies, as if by overcrowding. 4. Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction. Wednesday, March 6, 13
  8. STOP! Wednesday, March 6, 13

  9. GO! Wednesday, March 6, 13

  10. CONWAY’S GAME OF LIFE 1. Any live cell with fewer

    than two live neighbours dies, as if caused by under-population. 2. Any live cell with two or three live neighbours lives on to the next generation. 3. Any live cell with more than three live neighbours dies, as if by overcrowding. 4. Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction. Wednesday, March 6, 13
  11. STOP! Wednesday, March 6, 13

  12. GO! Wednesday, March 6, 13

  13. CONWAY’S GAME OF LIFE 1. Any live cell with fewer

    than two live neighbours dies, as if caused by under-population. 2. Any live cell with two or three live neighbours lives on to the next generation. 3. Any live cell with more than three live neighbours dies, as if by overcrowding. 4. Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction. Wednesday, March 6, 13
  14. STOP! Wednesday, March 6, 13

  15. TDD & LEGO ROBOTS A Workshop With Kealy Opelt and

    Ted Layher from Menlo Innovations! Tuesday, 4/2, 7-9 pm @CraftsmanGuild | facebook.com/CraftsmanGuild http://craftsmanguild.herokuapp.com Wednesday, March 6, 13
  16. Wednesday, March 6, 13