Geeks With Blogs
Greg Malcolm Everything but the Perl

Recently a Python developer friend with whom I was pair programming with suggested that I show him how to write a little Ruby. I responded by telling him to check out Ruby Koans as a starting point.

However I wanted to try that in reverse at the same time with me learning some Python. I did a bit of googling, and sure enough someone had started writing some Python Koans. It just needed finishing...

So, a few weeks later Python Koans is now complete and ready for action!

Python Koans Screenshot

It is available through Mercurial on Bitbucket:

http://bitbucket.org/gregmalcolm/python_koans/wiki/Home

It is also mirrored on Github:

http://wiki.github.com/gregmalcolm/python_koans/

Converting it was fairly easy. Aside from the differing philosophical approaches behind the two languages, Ruby and Python are fairly similar. We had to come up with completely new material for a few subjects like multiple inheritance and decorators, but for most features in Ruby there is something roughly comparable in Python.

I highly recommend writing tests (or koans) as a means to lean a new language or framework. I've learned a lot from doing this.

Posted on Monday, April 5, 2010 11:41 PM | Back to top


Comments on this post: Koans, now available in Python flavor

# re: Koans, now available in Python flavor
Requesting Gravatar...
Totally awesome. I was around when the original Python koans project started after a few of us local Pythonistas showed up for a CLERB (Cleveland Ruby Brigade) meeting about Ruby koans with @jimweirich. *Really* happy to see it take off!
Left by Benjamin W. Smith on Apr 06, 2010 1:40 PM

# re: Koans, now available in Python flavor
Requesting Gravatar...
Oh, thank you for this. This has already helped me and I'm only on the about_none.

Love it,
Pat
Left by Patrick on Aug 02, 2010 9:09 PM

# re: Koans, now available in Python flavor
Requesting Gravatar...
It's a great work
Left by mehree on May 01, 2011 8:14 PM

# re: Koans, now available in Python flavor
Requesting Gravatar...
enjoyed going through the python koans. I especially enjoyed the two projects. The learning curve on the final project is a bit steep though, it took me 10 or 20 times longer than any other puzzle. Thanks!
Left by Stan Bileschi on Jan 31, 2012 12:07 AM

Your comment:
 (will show your gravatar)


Copyright © Greg Malcolm | Powered by: GeeksWithBlogs.net