Pretty code in blogs

June 28th, 2008

I love Blogger. I have been using it for about 2 years in my personal blog and it has done me really well. When I decided to start up a tech blog, I figured that Blogger would work great for that as well. Unfortunately, in my last two posts, I had a bear of a time getting my code to format. Once I thought I had it, Blogger would re-format my code enough that my formatting got all screwed up again Read More...

Generic constraints for value types

June 26th, 2008

I came across an oddity in the C# language the other day. I was trying to create a generic method that returned a nullable value. A simple example of this: 1: public T? GetNullable<T>(int index) 2: { 3: if(index < 0) 4: return null; 5:  6: return default(T); 7: }   This will result in a compiler error: Error 1 The type 'T' must be a non-nullable value type in order to use it as parameter 'T' in the generic type or method 'System Read More...

On Readability and Maintainability

June 24th, 2008

In the last 6 weeks, I have been spending a lot of my time rearchitecting my software. Along with this comes a lot of refactoring. It gets me to thinking about readability and maintainability. I came across a situation where there were several methods with the same boilerplate code. I reduced this down to a single method that takes a delegate and each dependant method calls into the single method with an implementation of a filter Read More...

Lansing Day of .NET

June 23rd, 2008

In one of my favorite tech blogs, Coding Horror, Jeff Atwood blogs about what it means to practice your profession. More specifically, he mentions that you can do your job without practicing your profession. That everyone drives every day, but most people are not professional drivers. In his post, he brings up several things you can do to become more practiced as a developer Read More...

The start of a new blog

June 21st, 2008

Why am I doing this? Another blog? Another blog about software? Just another programmer who thinks that someone might care what he has to say? I don't know. I guess I am doing it to create more of an online presence... although if you "google" my name, you will find countless usenet conversations about everything from "SSH Tunneling" to blueberry jam Read More...