Infrastructure is king: The To Do app

time to read 1 min | 155 words

I spent the last few days writing the NHibernate in Desktop Apps sample. Since I didn’t feel like doing something adventurous, I choose to use the age old ToDo app as the sample.

Now that I have finished it, I run some stats on it, and it is… interesting.

Here is the number of lines split into infrastructure and application code:

image

The funny part about this is that this is for an application that has three forms altogether and very little behavior.

The not so funny part is that I fully expect that extending the application would require very few modifications to infrastructure code, while the support of the infrastructure means that I can churning out new features without really having to think about anything but that specific feature.