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#

Codebreaker

CyberDojo

Erlang

FizzBuzz

Game of Life

JavaScript

Langton's Ant

Minesweeper

Mocking

Moq

NUnit

Prime Factors

Python

ReSharper

RSpec

Ruby

String Calculator

TestDriven.NET

Uncle Bob

Vim

Visual Studio

Code Kata FizzBuzz C#

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

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

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

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

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

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?

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

Langton's Ant in Ruby Kata

Micah Martin performs his code kata, Langton's Ant in Ruby. This is a screen cast, of Micah writing code to implement Langston's Ant, BDD style. He uses the shiny new RubyMine IDE for development, and Limelight to run the simulation.

Codebreaker - Marker

Screencast for code kata: From RSpec Book Marking a match for codebreaker post: http://katas.softwarecraftsmanship.org/?p=27

TDD Kata - String Calculator by Andrew Woody

Doing Test Driven Development (TDD) code Kata of a basic calculator problem. TDD is a technique where the production code is driven by writing unit tests, the technique uses the Red, Green, Refactor approach. Kata is a technqiue where the person practices something oevr and over again until it becomes second nature. Doing TDD code Kata is about the techniques of doign TDD and refactoring becoming second nature.

String Calculator TDD Kata 2 - Interactions

Second part of the String Calculator Kata introducing interaction based testing with mocks. Rules of the Kata: http://osherove.com/tdd-kata-2/ Blog post: http://rickardnilsson.net/post/2011/07/19/tdd-kata-2.aspx Kata description: http://osherove.com/tdd-kata-2/

The FizzBuzz Kata in JavaScript

Me performing the FizzBuzz Kata. http://blog.rmontanaro.com/ Kata desciption: http://codingdojo.org/cgi-bin/wiki.pl?KataFizzBuzz

+ Load more casts