Continuing to make my way through Roy Osherove’s TDD course. There’s an interesting exercise that he introduces to help practice and gain the muscle memory required to do TDD well – the Code Kata. Wikipedia attributes the code kata to Dave Thomas:
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.
There’s a nice project over here on Github containing descriptions and code for a bunch of Katas, including the string calculator that Roy introduces. Roy’s site has the string calculator kata executed in a bunch of different languages, including AutoHotkey!