BT

Coding Dojos to Master the Art of Development

| by Amr Elssamadisy Follow 0 Followers on Sep 01, 2007. Estimated reading time: 2 minutes |

Coding Dojos are meeting places where developers can go to practice coding together and improve their development skills in a relaxed and enjoyable setting. Emily Bache and others have started to document dojos on a wiki where the public can go to get started.

Dave Thomas introduced the code kata and documented twenty one different katas that can be used to hone our programming skills. His reasoning behind this approach to learning was:

How do you get to be a great musician? It helps to know the theory, and to understand the mechanics of your instrument. It helps to have talent. But ultimately, greatness comes practicing; applying the theory over and over again, using feedback to get better every time.

How do you get to be an All-Star sports person? Obviously fitness and talent help. But the great athletes spend hours and hours every day, practicing.

But in the software industry we take developers trained in the theory and throw them straight in to the deep-end, working on a project. It’s like taking a group of fit kids and telling them that they have four quarters to beat the Redskins (hey, we manage by objectives, right?). In software we do our practicing on the job, and that’s why we make mistakes on the job. We need to find ways of splitting the practice from the profession. We need practice sessions.

Coding dojos are places where groups of people come together to practice katas together. When InfoQ asked Emily Bache about the intended audience for a coding dojo she responded:

I think anyone who wants to improve their coding skills, particularly in the area of Test Driven Development, should consider going along to one. The idea is not really new, there have been user groups and study circles meeting to share experience for years, and this is really a new angle on the same idea. I was a member of a group studying design patterns a few years ago, and the dojo is really a new brandname for an old idea. A bunch of people who all want to improve their skills, learn from one another, and have fun doing it.
The premise behind this technique is that deliberate practice, not pure talent, creates expertise. By going over the same small problems again and again you find yourself having small 'aha!' moments that further your design and coding ability. As Uncle Bob put it after attending a presentation by Laurent Bossavit on coding dojo:
Now I have been doing one particular Kata for several years now. I've done it hundreds of times. I do it at conferences, customers sites, trade shows, etc. It's the BowlingGame. I've done this so many times I can do it in my sleep. The funny thing about it is, though, that I still make tiny little improvements. This doesn't happen very often anymore, and the improvements are not significant; but they are there.
So, coding katas can be performed individually or in groups to hone our development skills. Coding dojos are places where developers meet in a fun and relaxing environment to practice together. And all of this requires that we take extra time, after our 9-to-5 to improve our development skills.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Martial arts comparison by Rickard Öberg

The comparison between software development and martial arts can be very useful. There are a number of concepts in MA that have counterparts in software development.

Techniques in MA would be the counterpart of programming languages: coherent atoms that can be combined using specific rules.

But I would probably compare kata more to design patterns, as kata usually are very strict in how they should be applied, just like design patterns. What is described as kata in the article sounds more like randori, that is sparring within some specified limits, and where kata is to be applied. Free randori is like street-fighting (i.e. martial but without the art), and programming without design patterns usually ends up in spaghetti code. And when randori feels like kata, and kata feels like randori, then your technique is probably pretty good, so perhaps the line between the two is vague :-)

Another useful comparison is that of Shu-Ha-Ri, i.e. the progression of understanding of MA. In the initial Shu-phase ("Protection") the aim is to learn the technique as well as possible. Learning the language, and learning what the design patterns look like. The goal is to be able to repeat the techniques with perfect movement.

In the Ha-phase ("Destruction") you learn how to apply the language and patterns on real situations, and what their core components are. In this phase you also learn to remove any unnecessary movement, keeping only what is important. This is similar in software development, where you will want to learn how to achieve minimalism and yet get the job done without creating simplistic designs that cannot adapt to new situations.

In the Ri-phase ("Distancing") you learn how to put your own personal style on the expression of Martial Arts. Usually only other people who have achieved Ri-stage can still see the individual kata during a performance, as the movement has been perfected and minimized. In MA this is a big problem, as it is far too common that Shu-students try to learn MA by mimicking Ri-masters, thus producing the wrong movement as there is no understanding of what is supposed to happen. The result is disastrous, and the same can be said in software development. SOA is perhaps the best example right now, where experts on the topic say one thing ("use web services"), and beginners without the necessary experience filter and translate it into their own faulty vocabulary, producing nothing but garbage as a result("@WebService"). In both MA and software development, this situation can be quite painful to watch. It is perhaps worst when supposedly Ri-masters fall victim to this disease.

Another common problem between MA and software development is that of ranking. In some schools having a black belt only means that you know the teacher well, or that you have paid some amount of money. In software development sometimes the proclamation of being a black-belter means nothing more than the individuals own belief that it is so. But as with the problem outlined above the end result is usually disastrous, leading to opinions about this and that which have no foundation. In proper schools each rank has a specific meaning, preferably related to not only techniques and kata, but also to the Shu-Ha-Ri progression. In such a context a rank can actually have a useful meaning and purpose. In software development this is rarely the case I have noticed.

One saying I've heard often in the dojo is the idea that "practice makes perfect" is incorrect, and that it should be "perfect practice makes perfect". In both MA and software development you will often find people who have practiced for a very very long time, and yet still fail to grasp fundamentals of technique and kata. Quite probably this is due to imperfect practice. So if you practice, make sure it is done with perfection, or not at all. :-)

Lastly, the importance of Saho ("etiqeutte") in the Dojo is considered vital. Sadly this is not the case in software development circles, but it probably should be. Respect and humbleness where applicable is a good thing I think.

Variations by Greg Akins

At the Pittsburgh Coding Dojo (www.pghcodingdojo.org) we've moved from some of the "traditional" katas. It seems that this has added to the diversity of our membership.

Rather than attracting only the XP "crowd", and focusing on TDD and pair programming, we spend more time simply exploring algorithms, data structures and puzzles.

Folks can program in pairs, or not. And can use any language they would like.

Whether following strict "Kata" like exercises, or simply spending time programming with other passionate developers, our members seem to be attracted to the opportunity to learn to program better.

The CodingDojo.org Wiki will hopefully provide a useful resource for exploring different practices that can help these small groups become more mature and to serve a greater community of developers.

Greg Akins
Organizer, Pittsburgh Coding Dojo
pghcodingdojo.org
groups.yahoo.com/group/pghcodingdojo

Re: Martial arts comparison by ryan martin

Wow, way over analyzed IMO. You took a basic metaphor and
added unnecessary complexity.

Re: Martial arts comparison by Rickard Öberg

Wow, way over analyzed IMO. You took a basic metaphor and
added unnecessary complexity.

Perhaps. But I have found that the comparisons go way beyond just using the words and "Dojo" and "Kata", so to me where you see complexity I see clarity. By understanding more about MA I have learnt more about software development, and vice versa. But trying to explain this to others is perhaps a futile exercise. Some things just have to be learned the hard way it seems.

Re: Martial arts comparison by Keith Barlow

I think he is right. I am not an overly experienced developer but I have found that as I have gained experience, I start to see things from new angles and perspectives and as my clarity and comprehension of the material progress, I am better able to deal with problems is more effective manners. I cannot speak for the martial arts analogy as I am not a martial artist, but I can comprehend his perspective and the ability to express these concepts in such an elaborate way definitely portrays a deeper understanding of the material. So too often, people accept the simple solution over the right one.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

5 Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT