On Monday, 23 December 2013 at 21:34:34 UTC, John Carter wrote:
So I resolved to learn D, and try code as idiomatically as I could.

So here is a trivial module that encodes and decodes roman numerals.

https://bitbucket.org/JohnCarter/roman/src/9ec5b36b9973426f35b0ab9dfd595cb3b305e39e/roman.d?at=default

I also attempted to do it in "Best Practice Test Driven Development" form
with commits on every change.

So you can see the blow by blow history of how it grew.

I would welcome any critique, advice, flames, recommendations, etc. etc.

Thanks for your help and patience with various stupid newbie questions I
asked in the process!

You could also do some neat stuff with opDispatch. Someone actually
wrote an article about using it with roman numerals:
http://idorobots.org/2012/03/04/romans-rubies-and-the-d/

Reply via email to