Code Kata - Roman Numerals: Intro

I first heard about a coding kata in Uncle Bob's blog. I really like the idea of relatively simple problems to practice your development skills. The idea of a kata is simple: Professionals practice.

I'm going to write up my experiences with the Roman Numerals Ruby quiz. I'll first summarize the problem here and then tackle this first in C#, then, I hope in other languages, perhaps even as a language learning exercise (thinking back to my aims for the year!).

The softwarecraftsmanship site posts screencasts of the solutions, which is an excellent way of showing everything in action. A large part of the exercise is in showing the entire process and how one gets from A to B rather than simply showing the final working code.

I'm however a little more low-tech – and these screencasts clearly take a lot of practice let alone a good deal of skill. So I will simply be posting code snippets at relevant parts of the process with descriptions about some of the thinking as I develop a solution.

The Problem

Write a program that can take either an Arabic or Roman numeral string and return the opposite format, for example if the method is given an Arabic number, the Roman numeral equivalent should be returned. The API should take the form: RomanNumeralConverter.Convert("29") which would return the string XXIX or RomanNumeralConverter.Convert("XXXVIII") which would return the string 38.

My Solution

C# - First attempt.


Comments:

Here you have great opportunity to learn in fabulous manner. Blogger has described everything in very effective manner so that you could get information what you want.

This blog is a great combination of suitable and useful information and well-written sentences that will certainly entice your sense and update you about new happening.

It’s hard to find knowledgeable people on this topic, but you sound like you know what you’re talking about!Thanks.

Thanks for providing this information was of great help for my needs, more information like this is needed.

What a blog I have read. Here you have great opportunity to learn in fabulous manner. Blogger has described everything in very effective manner so that you could get information what you want.

good post , i love it : www.mulberryalexauks.co.uk

I read your blog you have done great job Freelance Writer

I have been to many blog i really get what i was looking for keeps up the good work going. Taut Wire

I am new to your blog and just spent about 1 hour and 30 minutes reading. I think I will frequently visit your blog from now on. I will definitely learn a lot from them. Link Building India

Now i'm glad that I noticed nosuchblogger.com , exactly the suitable information which wanted!

I have been through the whole content of this blog which is very informative and knowledgeable stuff, I would like to visit again. Computer Amc in Delhi

Total Control Marketing Review - Groot stuk van details die u ontvangen heeft op deze website artikel. Hoop dat ik kan eventueel wat veel meer van het spul te krijgen op uw eigen website. Ik zal weer aankomen.

Realy keen blog , thanks. I m working all days and dont drink time to search , but on your site ist everythink.

I apologise, but, in my opinion, you are mistaken. I can defend the position.

Hi! Great work! one question: how long does it take 4 u to solve this kata?

greetz from germany, thomas

Hey very nice blog!!....I'm an instant fan, I have bookmarked you and I'll be checking back on a regular....See ya :)

nosuchblogger.com; You saved my day again.

Your blog is so informative … ..I just bookmarked you....keep up the good work!!!!

Hey, I found your blog in a new directory of blogs. I dont know how your blog came up, must have been a typo, anyway cool blog, I bookmarked you. :)


Comment Guidelines
See the FAQ for details on the full rules and guidelines. No Spam. Write clearly and thoughtfully - no bad language.