The anti-pattern copy and paste programming is an evil that appears often in many projects. The problems stem from this anti-pattern are very numerous, mostly related to the maintainability of code. How often propagates an error code that is not detected, and when it does, it is impossible to solve it in places where we have used the copy-paste.
Basically, copy & paste programming is a full-scale violation a core principle in software development, the first DRY (Do not repeat yourself). Duplication in code often leads to inconsistencies and are a clear indicator that the code is not properly refactoring.
While it is true that every experienced developer knows that eventually the copy-paste is bad, it is also true that it is something we all have done on occasion and that many inexperienced developers often abuse the copy-paste. The problem is that when this abuse is detected the evil already done. Just a little displicinado developer or inexperienced to fall into this error so that the project will suffer the problems associated with it.
Aware of this problem was born Clone Detective for Visual Studio, a fully integrated addin in Visual Studio whose mission is to identify where duplication is being introduced in the code or by copy-paste or by errors in design that force to introduce similar code . Currently only works for C #.
If you want to see how it works before trying to install please visit the video section of the website of the project on Codeplex. A very useful tool.Aware of this problem was born Clone Detective for Visual Studio, a fully integrated addin in Visual Studio whose mission is to identify where duplication is being introduced in the code or by copy-paste or by errors in design that force to introduce similar code . Currently only works for C #.

0 comments:
Post a Comment