Feelgood Friday – Refactoring with .NET Generics
As it’s Friday I thought – let’s do some cleaning up. The following exercise is refactoring a class from an app I’m maintaining at the moment. The app’s fine (functional etc), and was originally a...
View ArticleRefactoring below the surface. Things aren’t always as they seem
Continuing the refactoring from last week, I spotted another great example this morning that I ‘almost’ didn’t improve at all. My ‘entry point’ into this refactoring was trying to eradicate dynamic SQL...
View ArticleRefactoring the blindingly obvious – Enums and Value Names
I know many people have written about this one, but it’s cropped up yet again in the app I’m maintaining. The old chestnut of setting a string based on an enum value – when the enum names are...
View ArticleRefactoring the inefficient data loop
OK. Last one for today. I’m not going to go into too much detail except to say that the offending piece of code loads all items in a ‘matrix’ database table and builds a business object collection...
View ArticleNDepend – Visual Studio Addin: takes you as far as you want to go
First of all I’d like to point out that I was kindly given a license by the folks at NDepend (not very often that sort of thing happens I can assure you!) and I’m under absolutely no obligation to...
View Article