There's a saying in chess, "When you see a good move, look for a better one."
I've found this applies to programming too. Too many times, I've seen something I didn't like in code and rushed to rewrite it. The outcome, very much like when I rush a move in chess, rarely comes out as well as I'd hoped.
So, when you see something that could be refactored, refactor it later. By then, you're certain to have improved in several ways your plans to rewrite.
Subscribe to:
Post Comments (Atom)
1 comments:
Matt,
I totally agree with this sentiment. I call it Defer for Understanding. Problems that seem hard or complicated to solve now may become much easier once you better understand the problem and soltuion.
cheers,
Ivan
ivanism
Post a Comment