Skip to content
0:00 / 0:00

#tdd#codekata#refactoring

Jim Weirich - Kata and Analysis - 2013 COHAA The Path to Agility Conference

COHAA

1.1K subscribers • 1 video on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Jim Weirich

Intermediate. Assumes working knowledge.

6.1K views13 years ago1 recommendation

Tools and practiceSoftware designTestingRefactoring and legacy codeDesign patterns

Jim Weirich performs a live TDD-based code kata and analyzes the feedback loop between tests and software design.

A Code Kata is a simple programming exercise, practiced repeatably by a developer. Much like a musician practices scales and finger exercises to develop his musical skills, a developer will practice code katas to develop his programming skills. This talk will be a live performance of a simple TDD-based code Kata, followed by an analysis of the forces and choices involved in the feedback loop between the code and the tests encountered during the kata. By examining this interaction of tests and code, we come to a better understanding of how to use tests to actively affect the direction of our design. By reflecting on the process, we understand how to pick "what to test next". This talk is targeted for developers who have started using Test Driven Design (TDD) and feel that they don't quite "get it" yet, and are looking for guidance in the technique. Speaker Jim Weirich first learned about computers when his college adviser suggested he take a computer science course: "It will be useful, and you might enjoy it." With those prophetic words, Jim has been developing now for over 25 years, working with everything from crunching rocket launch data on supercomputers to wiring up servos and LEDs on micro-controllers. Currently he loves working in Ruby and Rails as the Chief Scientist at New Context, but you can also find him strumming on his ukulele as time permits. WWW.NEO.COM @JIMWEIRICH

Why it's here

1 person recommends this

What people say. Recommended as an excellent demonstration of the red-green-refactor cycle in test-driven development.

Moments people linked to

u/heyandy889in r/compsci • Recommends

On “Where can I learn good programming conventions and write more "clean" code?”

Along those lines, here is a demo I keep coming back to. It is a repeatable exercise ("kata") to implement a roman numeral conversion function. Admittedly, it is not a practical example, but the video clearly demonstrates the red-green-refactor cycle of test-driven development. Jim Weirich - TDD roman numeral kata
15View on Reddit