Mind Matters Natural and Artificial Intelligence News and Analysis

Tagrewrite reflex

the-code-is-on-a-laptop-on-a-wooden-table-in-front-of-the-window-in-the-dark-with-a-view-of-the-lights-of-the-night-city-color-lighting-in-the-room-home-decor-stockpack-adobe-stock
The code is on a laptop on a wooden table in front of the window  in the dark with a view of the lights of the night city, color lighting in the room, home decor

Know When to Hold ’em, Know When to Fold ’em

Taking control of the rewrite reflex

Computer 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 ›