A coding kata is a programming exercise that helps developers hone their skills through practice and repetition. The term "kata" comes from martial arts, where practitioners perform detailed choreographed patterns of movements to perfect their technique.
In software development, katas help you:
- Practice Test-Driven Development (TDD)
- Practice building in small steps
- Improve problem-solving skills
- Learn new programming patterns
- Experiment with different approaches to the same problem
- Build muscle memory for good coding practices
Credit to Samman Coaching Katas for the kata descriptions.
To run tests for all katas:
./test.shTo run tests for a specific kata:
./test.sh tennisTo create a new kata project structure:
./create-kata.sh kata-nameThis will create a new directory with the basic Go project structure including:
go.modkata-name.gokata-name_test.go
The format.sh script is used to automatically format your Go code according to standard Go conventions. To use it, simply run:
./format.shThis will format all Go files in the current directory and its subdirectories.