March 6, 2007
Copying and Pasting Hazardous waste
Jeff Atwood recently talked about Curly’s law of doing just one thing. He’s talking about simplifying your code so that it does just one thing. You can take it even one step further and know when you need to refactor and abstract your code. If you find yourself copying and pasting code from one section of code to another, then stop. If you had to do that, then you should create a new class or function that duplicates that code. You will save yourself a world of support headaches in the future.
Technorati Tags: Development, Code reuse, coding, design, refactoring, copy and paste












Leave a comment