About Me
Hi, I'm Simon Whittemore, a developer living in London. I've been a Developer for about 14 years, and have been working with .NET and C# since version 1.0. I have extensive experience developing maintainable, well architected Web and Desktop Applications in the Financial and IT Services industries, and have successfully integrated Open Source .NET applications and frameworks into processes and software.-
Recently on Twitter
Category Archives: Uncategorized
Dependency Injection with Unity: passing runtime parameters
Today, I had a problem of how to construct an object passing a specific date into the constructor. Normally, this is not an issue encountered frequently as only “services” are passed via constructor injection. This time however, I needed to … Continue reading
Posted in Uncategorized
Comments Off on Dependency Injection with Unity: passing runtime parameters
Flexible layout with WPF GridSplitter
Here is a quick sample showing how it is possible to create a flexible resizeable layout in WPF with a GridSplitter. Here we see how you can change the size of panes in a vertical and horizontal direction. And the … Continue reading
Posted in Uncategorized
Comments Off on Flexible layout with WPF GridSplitter
NUnit Constraints
For some reason, I have ignored the NUnit syntax around Assert.That up to now. I thought it was one of these experiments around a fluent interface which didn’t offer any advantages over the existing API. I wanted to write a … Continue reading
Posted in Uncategorized
Comments Off on NUnit Constraints
Javascript Learning Resources
I am making a concerted effort to really *learn* javascript at the moment. There are a load of great resources out there. Here is the beginnings of a list: Douglas Crockford’s Home Page JavaScript Garden – advanced topics Learn JavaScript … Continue reading
Posted in Uncategorized
Comments Off on Javascript Learning Resources
Contrawhatywho – nicer generics in C# 4.0
Everyone probably knows this already, but it’s probably easy to miss as *stuff now just works*. Contravariance, or covariance is now improved to make working with generics that little bit simpler. The following code now compiles fine in .net 4, … Continue reading
Posted in Uncategorized
Comments Off on Contrawhatywho – nicer generics in C# 4.0
Console2 and Cygwin – how to setup
So, I’ve set up my console how Scott Hanselman recommended. This is how I managed to get Cygwin to work correctly as a shell. You just need to set your shell to: %cygwin-path%\bin\bash.exe –login -i
Posted in Uncategorized
Comments Off on Console2 and Cygwin – how to setup
XCopy your dependencies in a pre-build step
Ok, again – this isn’t really ground breaking or anything, but if you have a load of dependencies that you need to copy at build time to your bin folder, this is a nice script that goes into the pre-build … Continue reading
Posted in Uncategorized
Comments Off on XCopy your dependencies in a pre-build step
Distinct in Linq
Sometimes, in .net it can get a bit confusing about which interface you need to implement for to get object equality to work correctly. When using the Distinct extension method in Linq, IEqualityComparer<T> is very useful var items = new … Continue reading
Posted in Uncategorized
Comments Off on Distinct in Linq
Finding Stuff
A little bit of unix command knowledge can often save a stack of time even on a windows box. This little snippet was really useful when I was trying to find out which file a function was declared in: find … Continue reading
Posted in Uncategorized
Comments Off on Finding Stuff
Batch Updates in .Net
Some rough notes about my investigations into different techniques to perform batch database updates. It’s not efficient to send individual queries from an application to the database server. What techniques can be used from .net to send batch updates? ETL … Continue reading
Posted in Uncategorized
Comments Off on Batch Updates in .Net