Katas, Contests and Coding Dojos

25
Katas, Contests and Coding Dojos Kerry Buckley, 1 October 2010

description

Presentation from BT DevCon3 event

Transcript of Katas, Contests and Coding Dojos

Page 1: Katas, Contests and Coding Dojos

Katas, Contests and Coding Dojos

Kerry Buckley, 1 October 2010

Page 2: Katas, Contests and Coding Dojos

What is a Kata?

Page 3: Katas, Contests and Coding Dojos

kata |ˈkätə|nouna system of individual training exercises for practitioners of karate and other martial arts.• ( pl. same or katas) an individual exercise of this kind.ORIGIN Japanese.

Page 5: Katas, Contests and Coding Dojos

But what does that have to do with software?

Page 6: Katas, Contests and Coding Dojos

Coding Katas

Page 7: Katas, Contests and Coding Dojos

Kata Styles

Page 8: Katas, Contests and Coding Dojos

‘Prag’ Dave Thomas

• Simple problems

• Many correct solutions

• Different each time

• Learn by experimentation

Page 9: Katas, Contests and Coding Dojos

‘Uncle’ Bob Martin

• Copy a master

• Follow forms precisely

• Learn by repetition

• Aim for perfect performance

Page 10: Katas, Contests and Coding Dojos

Katas can help…

• To ingrain good habits (TDD, refactoring)

• When learning a new language

• Master your editor or IDE

• Stop you forgetting the basics

Page 11: Katas, Contests and Coding Dojos

codekata.pragprog.com

Page 12: Katas, Contests and Coding Dojos

codingkata.org

Page 14: Katas, Contests and Coding Dojos
Page 15: Katas, Contests and Coding Dojos

Coding Dojos

Page 16: Katas, Contests and Coding Dojos

http://www.flickr.com/photos/pedromenezes/4146050594

Page 17: Katas, Contests and Coding Dojos

Code Retreat

Page 18: Katas, Contests and Coding Dojos

http://picasaweb.google.com/coreyhaines/CodeRetreatChicago#5383234997317010050

Page 19: Katas, Contests and Coding Dojos

And if I catch you writing the code before the test again, I’ll give you a chinese burn on the other arm too.

http://picasaweb.google.com/coreyhaines/CodeRetreatChicago#5383234997317010050

Page 20: Katas, Contests and Coding Dojos

Contests and Sparring

Page 21: Katas, Contests and Coding Dojos
Page 22: Katas, Contests and Coding Dojos
Page 23: Katas, Contests and Coding Dojos
Page 24: Katas, Contests and Coding Dojos
Page 25: Katas, Contests and Coding Dojos

Demo: Prime Factors