Tuesday, May 23, 2006

Electronic Elections: Doomed

Electronic elections in the US are doomed: this pretty much settles it.

 

Our government (and I don't mean "this government" - I think it's non-partisan) appears to be completely, hopelessly addicted to technology while at the same time being pathetically inept at making choices about it.

Monday, May 8, 2006

Trailing Commas

I was reviewing some code the other day and I noticed something like this:

 

public enum Foo {

  One,

  Two,

  Three,

}

 

Note the "extra" comma after the last element. I thought to myself, "There's no way this can compile." But in fact it does, and when I stopped to think about it, I realized how nice this C# feature is. It means I can more easily reorder these elements, more easily generate source code, and in general is just one less thing to worry about. And it turns out this works for static array declarations, too, like

 

string[] foo = { "a", "b", "c", };

 

Little touches like this make life in C# pleasant.

 

I'm sure I’m not the first to notice it, but I'll bet I'm not the last, either. ;)

Friday, May 5, 2006