April 2010

The Proposal Design Pattern

I've finally finished a write up on the Proposal Design Pattern. This design pattern was originally presented in the November 1997 issue of Object Magazine, and hasn't really been seen since. I've been intending on writing this for some time, but the words never seemed to flow - until now.

The essence of the pattern is that real world “changes of state” are almost always agreed upon by accepting a proposal of that change that has been prepared in advance.

Read more ...

On Naming and Convention ...

Richard Dingwall has a good blog post talking about one specific case where a naming convention goes bad and starts hindering, instead of helping, development.

Unit Testing 102

Slides from today's presentation Unit Testing 102 are now available for download here.

A zip file of code from the presentation will be attached shortly.

Spoken Numbers

Here's a little utility function that adds an appropriate suffix after numbers to show them as they might be said:

Using TypeConverters with WPF

I'm working on a little project at the moment which is dynamically building a WPF user interface based on a configuration file loaded when the application starts. This involves code to manually create all of the bits and pieces that are normally specified directly in a Xaml file.

One useful shortcut I've found is to leverage .NETs built in TypeConverter framework - the same technique used by the Xaml loader itself.

Things to install on a new machine

Roy Osherove has posted a list of things he installs on any new developer machine, including links so you can find out more.

NAntGraph v2.1

A new release of NAntGraph2 is available, with the following changes:

  • Now build separate source and binary distributions
  • Fixed output assembly name and build location for NAntGraphUI
  • Fixed unified versioning

Go to the NAntGraph home page to download either the source or a ready-to-run binary distribution.