Archive for October, 2009

The factory pattern in Python with __new__

Python’s __new__ function allows you to implement the factory pattern in a nice elegant syntax.

 

Joining the semantic web party

So, I’ve finally got round to joining the machine readable party that is the semantic web.

 

Git Nosetest Pre-commit Hook

I wrote a simple little git pre-comit hook today (inspired by Cosmin Stejerean’s hook).

It gets a list of directories from a git config setting tests.directories and runs nosetests against all directories.