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

Arduino Dojo @Mozilla

Arduino Dojo @Mozilla

Slides used to present a Coding Dojo with Arduino at the Mozilla offices in San Francisco

Luciano Ramalho

March 22, 2013
Tweet

More Decks by Luciano Ramalho

Other Decks in Technology

Transcript

  1. coding dojo * Collective programming exercises * Fun and effective

    for: * Introducing best practices; eg.TDD * Learn languages and APIs * Welcome new team members
  2. randorI: Free practice * Pair programming with TDD * One

    pair: pilot and copilot * Pilot types * Copilot assists * After 5 minutes pilot steps down * Copilot become pilot * Volunteer becomes copilot
  3. tdd = test-driven design * Write test before adding any

    new funcionality * While test is not passing, audience should be quiet * When test passes, audience may give suggestions for next steps
  4. tdd wITh hardware? * Objective, testable steps must be written

    *before* new code is added * It’s hard to automate hardware tests; more hardware would be needed * In the Arduino Dojo we do manual/visual testing
  5. babY steps * Each step should be so simple the

    implementation is obvious * Just enough to pass the test * Resist the temptation to be clever and optimize or generalize before the next test is passing
  6. Example: First Step * Blink the led connected to pin

    13 * To check USB connection and “smoke test” the circuit under testing
  7. today’s problem * Make a simple animation toggling the 6

    LEDs in the perimeter of the display in sequence, at a rate controlled by the pot
  8. STArt! * Volunteers? * If a new copilot volunteer does

    not step up in a timely manner, the randori may end prematurely * I have 150 slides about the History of Cobol to show instead