Introduction to coding dojo

  • Fun
  • Learn
  • Share
  • Practice

Some concepts

  • Kata
  • Iteration
  • Baby Steps
  • Pair programming
  • Time boxing
  • Pomodoro
  • Show your code

Dojo structure

  1. Introduction (25')
  2. Kata exposition (5')
  3. Pomodoro (40')
  4. Expo (5')
  5. Repeat 3 and 4 once (45')
  6. Retro (5')

TDD

  • Testing vs TDD
  • Test approachment
  • Arrange, Act, Assert
  • Red, Green, Refactor

Tools and libraries

  • unittest (docs.python.org/2/library/unittest.html)
  • pytest (pytest.org/latest)
  • mock (www.voidspace.org.uk/python/mock/)
  • cyber-dojo (cyber-dojo.org)

Example

Simple Anagrams Kata

Given an input string, return the list of all possible words combining its letters

$ anagram biro
biro bior brio broi boir bori 
ibro ibor irbo irob iobr iorb 
rbio rboi ribo riob roib robi 
obir obri oibr oirb orbi orib  

Your turn

Retro

  • Good job! Don't forget
  • New lessons
  • Changes for next time
  • Remaining doubts, questions