July 2009 - Posts

I finally got fed up with Enum.Parse
24 July 09 09:02 AM | MattManela | 3 Comments   
I don’t know why I didn’t do this long ago, but I am done writing this: var val = (SomeEnum)Enum.Parse( typeof (SomeEnum),”someString”); I have typed this too many times and it annoys me.  I wrote a small extension method on the string type to make Read More...
Filed under: ,
DRY and Unit Tests don’t mix well
12 July 09 08:08 PM | MattManela | 0 Comments   
When reading source code, I sometimes come across unappealing code(sometimes even my own).  However, there is one kind of “bad code” I see quite frequently.  It is a set of unit tests which have had the DRY (Don't Repeat Yourself) principle Read More...
Filed under: ,
Page view tracker