“Refactoring” brings out my inner skeptic. I’ve heard too many Agile enthusiasts who sound like they code at Hogwarts, waving their wands while yelling refactorum! at badly written but functional code so it magically realigns itself into a form that adheres to good programming standards.
People Who Know Such Things tell me I’m not being entirely fair, as if being entirely fair is something People Who Publish Blogs are supposed to aspire to. At times, they say, getting code to do what it’s supposed to do first, and then rewriting it into a better form can make more sense than trying to write it both right and well at the same time.