Archives
- June 2013
- May 2013
- February 2013
- January 2013
- December 2012
- February 2011
- December 2009
- March 2008
- July 2007
- June 2007
- December 2006
- November 2006
- October 2006
- September 2006
- June 2006
- May 2006
- September 2005
- June 2005
- December 2004
- October 2004
- September 2004
- July 2004
- June 2004
- May 2004
- April 2004
- January 2004
- December 2003
- November 2003
- October 2003
Category Archives: Refactoring
R# Refactoring Steps For Introducing a Const
I’m currently writing some pipeline components for SSIS and I’m curious as to whether there is a commonly followed refactoring pattern for extracting constants. For example, consider the following. var authenticationType = ComponentMetaData.CustomPropertyCollection.New(); authenticationType.Name = C_AUTHENTICATIONTYPE; There’s nothing unique to … Continue reading
Refactoring guard clauses, or “How to ask politely”
This post is brought to you by the letters M and V and P. I mention that at the beginning to set the pre-requisites. I woke up this morning, broke open our application, and am currently staring at this method … Continue reading
How do you tame the many heads of the hydra?
There have been numerous posts about hiring the "right" people. One of the more ideal characteristics is a passion for the industry and for learning new techniques. But as I look at more and more code written by these zealots … Continue reading
Coding with a net: An anecdote
I’m in the early stages of a new project with the dashing and debonair Brian Donahue. On the plus side, despite his misgivings, the codebase is in pretty phenomenal shape all things considered. SVN repository, automated build and tests, ActiveRecord, … Continue reading
DevTeach presentations explained
I’m preparing my presentations for DevTeach and have come to realize that there is a price to pay for creativity. Here are the abstracts for three of my presentations. Guerrilla Refactoring Greetings, comrades. Welcome to the resistance! Our quarry today … Continue reading
Model-View-Presenter in an MDI
The "How to" is gone from the title to be resurrected at appropriate intervals. In my last post, it was brought up in the comments that it was, and I quote, "naff". Wikipedia helped me with a definition which confused … Continue reading
Database refactoring, or "How to remove a schema"
Welcome back, revolutionaries! We’ve had a small reprieve from the fight to let our early anarchy settle in and—….y’know what. The revolutionary jargon is getting too hard to write and the refactorings more involved so I’ll just throw out a … Continue reading
ClassTester, or "How to exercise your assembly"
Fear not, brethren and…uhhh….sistren. The resistance is still alive. But the revolutionary jargon will get in the way here so I’m reverting to a more traditional means of expression. Among the things we’ve implemented as part of our project clean-up … Continue reading
Also posted in .NET General
2 Comments
Test SetUp Methods, or "How to make yourself public"
Here’s a little sidebar that I bet you didn’t know. Actually, that was probably more accurate at my old site where my readership measured on a more, shall we say, intimate, scale. Anyway, I recently converted a project from NUnit … Continue reading
Refactoring by rote, or "How to have a ReSharper Orgy!"
Greetings brothers and sisters and solidarity to you. The revolution is off to a rousing start. We have integrated continuously and Comrade Marc Davis has won a key early victory by excising the putrid web service that so fiendishly guarded … Continue reading
Also posted in .NET General
12 Comments