Logo_large

Dustin Brown

I'm a software developer who works primarily with .NET and C# - but I love exploring new languages and technologies. I'm passionate about creating software and learning how to do it better. @mrdustpan

Command/Query Objects with Dapper

Recently I've been looking to move away from the repository pattern. I always seem to end up with a bunch of classes that end with the word "Repository" but are far from the original intent of the pattern. The classes are large and unwieldy,...

Read More

April 07, 2014

On Comments

When I was first learning to program I was taught that you must comment your code. All good programmers provide nice descriptive comments for everything they write. If you don't comment your code, you're a horrible person.

I took this to heart and heavily commented my code....

Read More

March 30, 2014

My Git Cheat Sheet

Here’s a nice little cheat sheet of the most common commands I’ve been using in Git, to push my changes out to Github:

#change directory to c:\dev\projectscd /c/dev/projects#get the status of current directorygit status#stage all pending addes/updatesgit add .#stage all...

Read More

January 05, 2011

MSDN Gripe

As a .NET developer, I often find myself on the MSDN website.  This is a great site with a ton of resources, not least of which is the documentation for the .NET framework.

However I notice that when I Google for something I often find myself trying to avoid links to MSDN,...

Read More

November 17, 2010

Testing Validation Attributes in ASP.NET MVC

One of the really cool features of MVC 2 is the integration of Data Annotation validation attributes with the model binder. You can add pre-defined validation attributes to your view models (or roll your own) and the validation is automatically...

Read More

March 13, 2010

PDC 09 : Days 2 & 3

The past couple days have been pretty crazy. I didn’t have a chance to blog last night because I was too beat after Geekfest!

Here is some random stuff from the past 2 days:

Keynote day 2:

  • The Gu gave a great keynote and talked about Silverlight pretty much the entire time. I’m...

    Read More

November 18, 2009

PDC 09 : Day 1

Wow, I’m beat.  Just got back to the hotel after a full day at the convention.  Here are some highlights:

It’s All About the Cloud

This morning’s keynote focused almost entirely on the Windows Azure stack.  It seems clear that Microsoft is very serious about Azure and...

Read More

November 17, 2009

SQL Change Data Capture __$operation Values

In case you want to know what the value of the __$operation field means in a SQL CDC table, here ya go:

1 = delete

2 = insert

3 = update (before the update)

4 = update (after the update)

October 18, 2009

TDD Part 4: Conclusion

Well I hope you've enjoyed this series.  Again, I wasn't aiming to answer every question around TDD, as I still have many myself.  But rather I wanted to share my experiences in hopes that it might help someone else.

Also, I would really love some feedback...

Read More

July 26, 2009

TDD Part 3: Keys to Effective TDD

Silvrback blog image

When I first started using TDD, it was a struggle.  My tests seemed as complicated as the actual classes I was trying to write, and I didn’t really feel like I was getting a lot of benefit from the tests.

When I would change some code that would cause a test...

Read More

July 25, 2009

More Articles