Geeks With Blogs
Dave Chestnutt: SparklingCode and CodeGaffes Writing better code; for fun and profit December 2006 Entries
CodeGaffe: Copy & Paste (and ReSharper to the rescue)
I use a coding tool called ReSharper - and I was pleasantly surprised the other day when it pointed out a copy & paste bug that was waiting to explode. You see, copy and paste programming is so very easy to do - that we all do it. Even the best of us accidentally leave in duplicate code snippets from time to time. Why Cut & Paste is so bad There are two big reasons why this is an anti-pattern: If the code you cut and pasted has a bug in it (and it invariably will), what do you think are the ......

Posted On Monday, December 11, 2006 12:22 PM

Copyright © Dave Chestnutt | Powered by: GeeksWithBlogs.net