I realize I have been a bit quiet the past few weeks, but we just kicked off the first iteration of a new project at work, so still settling into the project groove. Luckily, the team I am on is outstanding, so there has been good progress made for the first iteration. Now, for the real purpose of this post. I've been a TDD enthusiast for about a year now and have been reading and watching videos about BDD the past few months and I am really intrigued. I have been trying it over the past week (using ......
I finally got a chance to run NDepend against a code base I'd written and I gotta tell you, it was an eye opening experience. First of all, I'd recommend spending some time reading about static code metrics first. Patrick Cauldwell's book is a good resource to start with. He has a chapter about static code analysis and he explains it at a high level in a very simple way. The NDepend website also has some excellent resources on understanding your NDepend analysis output. they have screen casts, which ......
Today I needed to override the default convention settings in Fluent NHibernate. By default, fNH sets up the default key columns that it looks for as “[TableName]_id”. The convention that we decided on at my work is ID for the surrogate key column of the table and “[TableName]ID” for every place it is used as a foreign key. In our RepositoryBase class is where we setup the session factory for NHibernate. This is also the place where you set up the PersistenceModel for fNH. Normally, what you might ......