The Copy Paste AntiPattern – An Easy Trap To Fall Into
We all do it. There is a chunk of code that almost does what we need. So, we copy and paste it where we want it then make some modifications. When we do this in our systems instead of proper code re-use than we are implementing the Copy Paste AntiPattern. Now let’s look closer at why we should avoid this. Defining the Copy Paste AntiPattern I want to use the Wikipedia definition for this anti-pattern to help us get a better feel for when and how it may occur. [Click Here to See The Page] “Copy-and-paste programming, sometimes referred to as just pasting, is the production of highly repetitive computer programming code, as produced by copy and paste operations. It is primarily a pejorative term;... Read more