August 10, 2011

The Decorator Pattern with Ninject

The Decorator Pattern is an excellent way to add functionality to existing objects at run time while honoring the open/closed principle. I decided to put together a sample project demonstrating this pattern in C# along with the DI container Ninject.

August 3, 2011

Git Workflow With Submodules

This quick and raw post describes the typical workflow of using Git with submodules...

July 28, 2011

Git Cheatsheet 1.1

Rob Conery created an excellent Git Cheatsheet as a part of his Mastering Git video series on his training site TekPub. I decided to tweak this cheat sheet (just a touch) with a few handy git commands:

March 26, 2011

Using a Connection String Name with Log4Net AdoNetAppender

Log4Net is a great tool to quickly add logging to a .Net application. However one feature that has been missing is the ability to provide a connection string name in the configuration for the AdoNetAppender. Currently out of the box you have to provide the full connection string in the AdoNetAppender configuration settings. This can violate the DRY principle if the same connection string is already set up in the connectionStrings section of the configuration.

So the question is: How can we enhance the Log4Net AdoNetAppender to have the ability to refer to an already existing connection string defined in the connectionStrings section of the configuration?

January 13, 2011

Well Sometimes You Need Configuration

This post describes how to use configSource in .Net to split up config file settings for developers. This allows us to have standard common config settings in the main web.config or app.config and then have developer specific values in another file.