Dustin Brown

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, clearly violating the Single Responsibility Principle.

A recent blog post by Rob Conery . . .

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. However, as time went by I noticed some problems with this . . .

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\projects cd /c/dev/projects #get the status of current directory git status #stage all pending addes/updates git add . #stage all pending updates/deletes git add -u #commit the changes with a  . . .

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, instead looking further down the list hoping for a Stack Overflow . . .

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 performed by the magic that is MVC.

Of course you’ll want to do this using TDD, so I thought I’d . . .

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 really getting the feeling that this is a big piece the future . . .

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 it sounds like it will be a big part of their technology in . . .

Read More

November 17, 2009