Saturday, October 18, 2008

The Five Stages of Refactoring

1. Disbelief



"Who wrote this!?"

2. Anger



"I'm not cleaning this up!"

3. Bargaining



"Okay, we'll fix up this module if you promise we'll just rewrite everything else."

4. Depression



"This is never going to get any better."

5. Acceptance



"I'll just create a wrapper..."

Caravaggio's The Incredulity of St. Thomas, there.