$30 off During Our Annual Pro Sale. View Details »

GDG Reading & Thames Valley DevFest 2015 Code Dojo

GDG Reading & Thames Valley DevFest 2015 Code Dojo

Code dojo using the word wrap kata, based on London Code Dojo 33 (https://speakerdeck.com/sleepyfox/code-dojo-33) by @sleepyfox

Florian Rathgeber

November 14, 2015
Tweet

More Decks by Florian Rathgeber

Other Decks in Programming

Transcript

  1. GDG DevFest Code Dojo
    @frathgeber
    #devfestrtv

    View Slide

  2. Introductions
    Say the three things:
    ● Your name
    ● What you do (at work)
    ● A random factoid about you personally
    Yesterday, I had ducklings raining down onto my
    balcony...

    View Slide

  3. What does it mean?
    Dojo means:
    'Place of learning
    the way'

    View Slide

  4. Chado dojo
    Chado dojo

    View Slide

  5. What does it mean?
    Kata means: 'Way
    of doing'
    A form or choreographed
    series of motions designed to
    teach a particular skill or
    pattern

    View Slide

  6. Kata?
    Kata?

    View Slide

  7. Deliberate practice
    • Gladwell[1] et. al. 10 yrs or 10,000 hrs
    practice to achieve expert performance
    • But practice must:
    – be focussed
    – be goal-directed
    – stretch your abilities
    – give continuous feedback
    – be followed by self-reflection

    View Slide

  8. 3 zones model of learning
    Panic zone!
    Learning zone
    Comfort Zone

    View Slide

  9. Pair programming

    View Slide

  10. Test-Driven Development

    View Slide

  11. XP: eXtreme Programming
    XP: eXtreme Programming

    View Slide

  12. Simple Design
    Simple Design is code that:
    1.Passes all the tests
    2.Is clear, expressive and consistent
    3.Duplicates no behaviour or configuration
    4.Minimises the number of moving parts

    View Slide

  13. Format
    • Pair up (self-organise)
    • We present the kata (problem to be solved)
    • Focus for one pomodoro (25 mins)
    • Stop, take 5 min break to:
    – Demo your code to anyone nearby
    – Get food or drink
    – Reflect...

    View Slide

  14. Kata: That's a wrap!
    • As part of a text editor application, write a
    function or method that takes:
    – A string of text (potentially long), and
    – A number of columns
    • It returns the same string, with newlines at
    or before the column length, placed if
    possible at word boundaries

    View Slide

  15. Hajime!
    Hajime!
    'Begin!'

    View Slide

  16. Yame!
    Yame!
    'Stop!'

    View Slide

  17. Stop!
    • Stop typing!
    • Now!
    • 5 min break

    View Slide

  18. Hajime!
    Hajime!
    'Begin!'

    View Slide

  19. Yame!
    Yame!
    'Stop!'

    View Slide

  20. Stop!
    • Stop typing!
    • Now!

    View Slide

  21. Reflection
    Reflection

    View Slide

  22. Thank you
    Thank you
    @frathgeber on twitter
    Twitter hashtag #devfestrtv
    GDG DevFest Reading & Thames Valley 2015
    Slides based on London Code Dojo 33 by @sleepyfox
    creativecommons.org/licenses/by-nc-sa/4.0

    View Slide