
Know When to Hold ’em, Know When to Fold ’em
Taking control of the rewrite reflexComputer programmers are a pretty predictable bunch. Every time they approach legacy code, the gut reaction is “let’s rewrite this from scratch.” The reaction is understandable for many reasons. First of all, code written by someone else (or even yourself a long time ago) is hard to understand. Even good documentation can’t cover every detail you need to know, and there is nothing that helps you understand the problem better than writing the code yourself. Second, as time goes on, and you think about a problem, you always come up with better (or at least different) approaches. You might realize that some aspect of your code could be factored out. You might think that rearranging the code would make it Read More ›