Archives for Software Development

Static methods: feel the fear and do it anyway

When your tests go green, it’s often a good idea to think about tidying up the internals of the method you just added/changed.
One of my favourite things to do here is to extract out meaningful methods from the implementation e.g

if(toolkit.Contains(Tools.Hammer))
{
var hammer = toolkit[x.Tool.Hammer];
Day.Morning.Do(hammer.Execute);
Day.Evening.Do(hammer.Execute);
[...]

Spark codec for OpenRasta

Update
I haven’t really had the chance to support this too much due to various reasons (new job, laptop with vmware image dying, supreme laziness and attention span issues). Anyway, the project is now on github and (thanks to some work from Lee Henson) is the most up to date: http://github.com/jennifersmith/openrasta-sparkcodec
Hope that helps you all [...]

Adventures in BDD style testing – too many scenarios!

I have been attempting to write a big article on my experiences of BDD/ BDD style testing or what ever you want to call it. However, I have learnt that big über articles generally are never finished (by reader or writer) so I have cut it down a bit…
So I have been using a style [...]

Extension method assertions versus standard assertions

I have been playing around lately with assertions in my  tests and figuring out the best (funnest?) way to work with them. Within the context of BDD style testing there seems to have emerged a style for using extension methods for asserts. As I found out at the SkillsMatter NBehave talk, NBehave comes [...]

My morning’s work

If only I could afford a real artist…

A basic problem of mapping

So I have a very basic problem with no doubt a very basic solution which at the present time is eluding me.
For some reason on this project 90% of the objects I work with are already in existence (in the database as well as conceptually in space-time !). Therefore most creation code for my entities [...]

QCon 2009

I am attending QCon London 2009 next week and I am in the process of deciding which bits I will attend. Although this is the first proper conference I have been able to get to (benefits of controlling your own training budget!), I am aware that sometimes you can end up going to less than [...]