Code and comments

Practical and theoretical aspects of software development

Archive for the ‘projects’ Category

Mastermind in Clojure and Java


Have you heard of mastermind? It’s a logic game in which one player repeatedly tries determine the secret code that another player set at the beginning. With each guess, the player is given information on how many correct pegs his guess contains, and how many are in the correct position. For more details on the rules, check the wikipedia article.

I built a Clojure implementation of Mastermind as a learning project. (Code and details of functionality at github.) My primary goals were to gain familiarity with the language, and to see what the functional programming paradigm feels like when working on a project that is larger than one big function. After I finished, I re-implemented (almost) all of the features in Java for a comparison. (Code also available at github.) Interested in the results? read on.

Read the rest of this entry »

Written by Eric Wilson

December 11, 2012 at 12:58 pm

Posted in projects

Tagged with , ,

Maintenance is no fun

I had fun creating @py3k_update, a twitter account that would send tweets announcing new libraries that are python 3 compatible. More here:

But when the page that I was scraping changed format, there was no joy in figuring out what to change to get the updates working accurately. I’ve got other fun and worthwhile things to do, both in programming, and in real life.

So thanks much to the 200+ folks that found @py3k_update worth following, I hope that you appreciated what it did provide, and aren’t too disappointed to see its demise.

Written by Eric Wilson

May 28, 2012 at 11:38 am

Posted in projects

Tagged with , , ,

Python 3 Library updates, via twitter

I’ve launched a new twitter account, @Py3K_update, which will send out tweets to notify followers when Python packages support Python 3. If this sounds like information that you want, please follow and/or tweet about this account.

If you are curious about the details, read on.

Read the rest of this entry »

Written by Eric Wilson

September 6, 2011 at 11:00 am

Posted in projects

Tagged with , , , ,