Introduction to coding dojo
- Fun
- Learn
- Share
- Practice
Some concepts
- Kata
- Iteration
- Baby Steps
- Pair programming
- Time boxing
- Pomodoro
- Show your code
Dojo structure
- Introduction (25')
- Kata exposition (5')
- Pomodoro (40')
- Expo (5')
- Repeat 3 and 4 once (45')
- 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
pyDojos
By Ignasi Fosch Alonso
pyDojos
- 969