Monthly Archives: August 2009

Refactoring Day 2 : Move Method

The refactoring today is pretty straightforward, although often overlooked and ignored as being a worthwhile refactoring. Move method does exactly what it sounds like, move a method to a better location. Let’s look at the following code before our refactoring: … Continue reading 

Posted in Uncategorized | 7 Comments

Refactoring Day 1 : Encapsulate Collection

In certain scenarios it is beneficial to not expose a full collection to consumers of a class. Some of these circumstances is when there is additional logic associated with adding/removing items from a collection. Because of this reason, it is … Continue reading 

Posted in Uncategorized | 18 Comments