Geeks With Blogs

My Blog geek yapping Design
Creating abstractions instead of using generic collections

Posted On Monday, January 23, 2012 5:38 PM

The slippery slope of "var"
The var keyword has been a rather controversial addition to the C# language. Many developers initially fear it, getting lost in demos that use it. Eventually, they come to understand it as something "lazy" programmers would use and often dismiss it. I've gone through these stages. I even remember my blood boiling when I saw resharper, out of the box, suggest to use it! I never really understood it as anything more than implicit typing. Recently, I decided that I should learn new concepts with new ......

Posted On Thursday, September 24, 2009 3:21 AM

Null Object Pattern
Code reuse is very important for developers, most of the patterns and refactorings exist soley to reduce the smell of duplicated code. Null checks are one of the biggest culprits of duplicated code. It is also, to a degree, a concern that often gets scattered through out an application and isn’t properly separated. Without testing and/or good documentation, it’s often hard to determine the expectations of a method that returns a reference type or a nullable value type. Often, unnecessary, paranoid, ......

Posted On Tuesday, July 21, 2009 1:40 PM

Program to an interface, not to an implementation
Program to an interface, not to an implementation
Not sure if this has a source, but it’s a great concept.

Posted On Saturday, June 20, 2009 1:41 PM

Refactoring - Compose Method
This refactoring, again from Refactoring to Patterns, reduces ambiguity in methods that have too much detail or conditional logic to quickly comprehend. By breaking a method down into smaller methods, the ambiguity can be removed. The mechanics of this refactoring are rather subjective, but obviously lead to the use of Extract Method. Study the code and make sure you understand it, the longer this takes, the more you need to apply this refactoring! Clean up the code, look for unused or duplicated ......

Posted On Wednesday, June 17, 2009 7:22 PM

Copyright © Wes McClure | Powered by: