Archive for October, 2008

The flip side of TDD

Friday, October 31st, 2008

There is a problem with Test Driven Development (TDD) and security. Even though I’m a severe proponent of TDD and do my own development (largely) that way, I notice a strong conflict between good architecture and TDD. I’ve also seen mention of this effect in the journals lately, so I’m not alone in this. What […]

Strongly typed constant parameters in C#

Wednesday, October 29th, 2008

After a bit of searching, I found a way to have strongly typed constant parameters for C# functions. You know the situation, where you need to pass one of a limited set of strings or chars or other values to a function and you want to make sure somebody doesn’t just go and pass any […]

Spoiling the show

Wednesday, October 15th, 2008

This morning I watched Steve Job’s presentation of the new notebooks. The audience was subdued and quiet, almost morose. Steve didn’t show much enthusiasm either, and I was bored. Not that the stuff he presented was anything but brilliant, but there was nothing new or unexpected, since everything, down to the last trackpad and price […]

Reflect on those constants

Thursday, October 9th, 2008

This falls in the category “neat tricks” and definitely under “DRY” (Don’t Repeat Yourself). When you have a list of constants that you need to save or retrieve, typically settings, you easily get into a situation where you have say 20 constant strings defining the names of your constants, and then a block of code […]