Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I have used the Prime Factors Code Kata in one of my presentations to show TDD. It's easy and short and perfectly for a small demo during lecture on code quality/software craftsmanship. But the students complain, that there is too much math in the problem. And it's true, most of them don't know what a prime factor is :-(

So what would be a similar kata in time needed to perform it? I know of several katas but I haven't done them all, so I can't compare. E.g. the String Word Wrap Kata is simple too, but needs more coding, so would break my lecture schedule.

In fact I'm searching for a suitable replacement of the Prime Factors code kata, but any list of simple code katas, e.g. Prime Factors, Word Wrap, will do.

share

migration rejected from stackoverflow.com Feb 12 at 19:54

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as off-topic by gnat, MichaelT, Kilian Foth, GlenH7, Bart van Ingen Schenau Feb 12 at 19:54

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions asking us to recommend a tool, library or favorite off-site resource are off-topic for Programmers as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – gnat, MichaelT, Kilian Foth, GlenH7, Bart van Ingen Schenau
If this question can be reworded to fit the rules in the help center, please edit the question.

    
There's a nice list of katas at the Coding Dojo wiki. –  hammar Jul 11 '11 at 19:37
    
Nice list, but I need some kind of complexity comparison. –  Peter Kofler Jul 11 '11 at 19:39
1  
I love the bowling game Kata butunclebob.com/ArticleS.UncleBob.TheBowlingGameKata It's not mathematical; so there's not that hurdle for newbies. It just helps reinforce TDD skills. –  Amy Anuszewski Jul 26 '11 at 12:33
comments disabled on deleted / locked posts

1 Answer

up vote 4 down vote accepted

There's a list of katas ordered by complexity over at codingkata.org.

Some of their katas are just modified/renamed version of the "classics", but the ideas are all the same. The site is aimed at Java/Clojure/Scala programmers, but obviously these can be done in any language.

The katas are organized by level: tutorial, beginner, beginner++, intermediate, advance, and professional. I think most typical katas would fit in "beginner++", but you can read through the descriptions and see where Prime Factors would fit and what other similar things are there.

share
    
Nice list. I did not know that site. –  Peter Kofler Jul 29 '11 at 9:18
4  
That site has no content now ... –  Zac Thompson Oct 20 '11 at 21:45
    
A (currently) live link: codekata.pragprog.com –  Mike Partridge Mar 6 '12 at 22:36
    
@ZacThompson The main page suggests they're replacing the site with something better, but it's unfortunate that the whole thing's down now. :( –  Anna Lear Mar 6 '12 at 23:23
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.