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

TDD & Pairing at Craftsman Guild

TDD & Pairing at Craftsman Guild

Amber Conville

March 05, 2013
Tweet

More Decks by Amber Conville

Other Decks in Education

Transcript

  1. 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
  2. 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
  3. 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
  4. 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
  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. 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
  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. 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