Clone and Modify

Except when you are prototyping, if you find yourself cloning and modifying code, you soon create an unmaintainable mess. You must factor out the commonality and encapsulate it so the logic appears only once.

~ Roedy (1948-02-04 age:69)