Hack your journey to software craftsmanship with martial arts practices

code-kata

“Whatever luck I had, I made. I was never a natural athlete, but I paid my dues in sweat and concentration and took the time necessary to learn Karate and become World Champion.” – Chuck Norris (American martial artist and actor. Also, the only man who has counted to infinity. Twice.)

 

 

Japanese concepts from martial arts become common practices in software craftsmanship. It is known that thousands of software developers aiming to become craftsmen are mastering their skills using them.

In fact, in the software industry developers are taught the theory and thrown straight into working on a project. The practice is done on the job, and mistakes occur. Applying the theory is not enough, greatness comes from practising. What makes a programmer to be great is the practice done beyond the software development current job. That’s why so many developers nowadays practice Code Kata.

Why would you do Code Kata?

In karate a kata is an exercise where you repeat a form many times, making small improvements each time. The intent behind code kata is similar. Each iteration is a short exercise (about 30′ to 1-hour duration). The point of the kata is not arriving at the right solution, but to learn some stuff along the way. The only goal is to practice.

Exercise your programming muscles in a way you enjoy and see the progress you make.

According to Code Kata, you need a good practice session and you have to make it fun: you need a bit of time without interruptions, and a single problem to solve in iterations; do as many iterations as it takes for you to improve, and be comfortable making mistakes.

What is Code Kata?

code kata is an exercise in programming which helps a programmer improve their skills through practice and repetition. The term is considered to be coined by Dave Thomas, co-author of the book The Pragmatic Programmer: From Journeyman to Master, in a bow to the Japanese concept of kata in the martial arts.

An example of Kata

Repeat solving the same problem (as the one below), until you know it by heart. You can be sure the next time it pops-up in production it will take you seconds to get it done.

Think of binary numbers: sequences of 0’s and 1’s. How many n-digit binary numbers are there that don’t have two adjacent 1 bits? For example, for three-digit numbers, five of the possible eight combinations meet the criteria: 000, 001, 010, 011, 100, 101, 110, 111. What is the number for sequences of length 4, 5, 10, n? Having worked out the pattern, there’s a second part to the question: can you prove why that relationship exists?

Practice Code Kata at I T.A.K.E. Unconference

In 28-29 May, 2015 in Bucharest, there’s a Kata Lounge track waiting for you.
During the 2-day program, at any time, you can join this track to pick up a challenge and start the kata session. The challenge contains: the problem (called kata), the time you have for your session, and the name of the person who will review your code. The reviewer will help you improve your coding skills.
Invest a bit of time in your coding-craft. Don’t miss the Kata Lounge as well as many other hands-on sessions at I T.A.K.E. Unconference.

Leave a Reply

Your email address will not be published.

*