The Johnson Blog

Ramblings of a Computer Geek and his Wife…

The Johnson Blog Header Image

Unit Testing

March 14th, 2008 · 7 Comments

I would love some input on this from you fellow developers out there, as this is something I continue to try and improve on… WARNING, CODE BELOW THE BREAK!

[Read more →]

Tags: General

Recipe Slideshows

December 10th, 2007 · No Comments

Chef has a feature called Recipe Slideshows which allow you to view a recipe fullscreen in a PowerPoint-like format that’s much easier to read while you’re cooking than the small text of a cookbook, or the regular view of a recipe in Chef for that matter. I’ve had that feature around for a while, [...]

[Read more →]

Tags: General

C# operator== overloading

October 26th, 2007 · 4 Comments

I recently came to a situation where operator overloading C# (specifically the == operator) would really be beneficial. Since I’ve typically steered away from this technique, for readability and maintainability, I hadn’t had much experience with it.
My overloaded operator looks something like this:

static bool operator==(Id<T> a, Id<T> b)
{
return a.Value == [...]

[Read more →]

Tags: General