Monthly Archives: August 2010

Database indexes are your friend

I guess I assumed that creating a foreign key constraint would automatically create a non-clustered index.  I mean, a primary key is a clustered index, why wouldn’t a foreign key also create an index? A batch process today slowed from … Continue reading 

Posted in Misc | 7 Comments

Why Hg branches are broken (or at least less useful)

In one picture: In Hg, branches are metadata included in each changeset.  In the operation above, I created a branch, but that only marked the current directory with a branch name.  The branch won’t actually show up unless I make … Continue reading 

Posted in Mercurial | 12 Comments

An effective testing strategy

On a recent large project, we had a goal early on that we didn’t want to have a lot of QA folks manually testing our software.  Finding bugs through manual testing is incredibly time consuming and expensive, so we opted … Continue reading 

Posted in Testing | 13 Comments

AutoMapper upgraded to .NET 4 and VS 2010

In the last post, I posed the question on what to do with .NET framework upgrades and OSS support.  I wanted to upgrade AutoMapper to .NET 4, but I didn’t want to leave a lot of folks behind because their … Continue reading 

Posted in AutoMapper | 8 Comments

OSS and the .NET Framework upgrade

I’ve hit a bit of a dilemma recently, I want to use features in C# 4.0 and .NET 4.0 to enhance AutoMapper, but this would eliminate the possibility of .NET 3.0 projects from being able to use the new version. … Continue reading 

Posted in Misc | 14 Comments

Container-friendly domain events

A lot of times an operation on a single aggregate root needs to result in side effects that are outside the aggregate root boundary.  There are several ways to accomplish this, such as: A return parameter on the method A … Continue reading 

Posted in DomainDrivenDesign | 7 Comments