Code Katas

Code Kata is a term coined by Dave Thomas, co-author of the book The Pragmatic Programmer, in a bow to the Japanese concept of kata in the martial arts. A code kata is an exercise in programming which helps a programmer hone their skills through practice and repetition.

Arabic to Roman Numerals

Autospec

C#

C++

Codebreaker

CPPUnit

CyberDojo

Erlang

FizzBuzz

Game of Life

Haskell

Igloo

Java

JavaScript

LamdaJ

Langton's Ant

Minesweeper

Mocking

Moq

NetBeans

NUnit

Prime Factors

Python

ReSharper

Roman Numerals

RSpec

Ruby

String Calculator

TestDriven.NET

Uncle Bob

Vim

Visual Studio

TDD Kata in C++: String Calculator - Interactions

TDD Kata in C++: String Calculator - Interactions

by Joakim Karlsson

My attempt at the String Calculator Interactions exercise. Rules for the exercise: osherove.com/tdd-kata-2/ Igloo is available here: igloo-testing.org

String Calculator Kata in C++ with CPPUnit

String Calculator Kata in C++ with CPPUnit

by dmail

Music is creative commons from gardnermuseum.org/music/podcast/archives.asp This is an attempt at Roy Osherove's string calculator Kata osherove.com/tdd-kata-1/

String Calculator Kata in Haskell

String Calculator Kata in Haskell

by Michael Feathers

A screencast of my take on the String Calculator Kata in Haskell. Arrived at (what I think is) an elegant point-free solution.

Roman numerals kata with audio commentary

Roman numerals kata with audio commentary

by Corey Haines

This is a recording of the roman numeral kata with audio commentary. There is a companion video without the audio commentary. Please see the blogpost here for more information: http://programmingtour.blogspot.com/2012/12/roman-numerals-kata-with-commentary.html

String Calculator in Java+LamdaJ

String Calculator in Java+LamdaJ

by Andrea Francia

String Calculator in Java+LambdaJ on Netbeans performed by Andrea Francia

Code Kata FizzBuzz C#

Code Kata FizzBuzz C#

by idog63

Write a program that prints the numbers from 1 to 100. But for multiples of three print "Fizz" instead of the number and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz". http://www.codinghorror.com/blog/2007/02/why-cant-programmers-program.html

Game of Life Kata by Emily Bache in Python

Game of Life Kata by Emily Bache in Python

by Emily Bache

Emily Bache walks through a prepared code kata (Conway's Game of Life) in the Python programming language. I show how to get from one empty failing test to an interesting piece of code using Test Driven Development. See also the Game of Life kata description on katacatalog.com, and my comments about this screencast in my blog at emilybache.blogspot.com.

String Calculator in Erlang

String Calculator in Erlang

by Gabriele Lana

Execution of String Calculator code kata in Erlang by Gabriele Lana from Roy Osherove's TDD Challenge osherove.com/tdd-kata-1

Minesweeper Code Kata

Minesweeper Code Kata

by Thomas Nilsson

A simple minesweeper game implemented in under 14 minutes using Underscore.js, jQuery and Grid.js.

Roman Numerals Coding Kata in Ruby using CyberDojo website

Roman Numerals Coding Kata in Ruby using CyberDojo website

by Jon Jagger

CyberDojo, http://www.cyber-dojo.com is a free online coding gym where you write your code and tests totally inside a web-browser! It's a great environment for learning about coding, test driven development, team dynamics, and collaboration. Twitter: @JonJagger Blog: http://jonjagger.blogspot.com/ Kata description: http://codingdojo.org/cgi-bin/wiki.pl?KataRomanNumerals

Code Kata: Arabic to Roman Numerals

Code Kata: Arabic to Roman Numerals

by Bruno Pedroso

look here: http://dojobrasilia.org/dojo_sessions/98 Kata description: http://codingdojo.org/cgi-bin/wiki.pl?KataRomanNumerals

Prime Factors Kata in Ruby, Flower Duet, Lakm?

Prime Factors Kata in Ruby, Flower Duet, Lakm?

by Robert C. Martin

A screen cast with Uncle Bob himself performing his Prime Factors Kata.

+ Load more casts