Tracking the hidden duplicate code in a C++ code base.

It’s known that the presence of duplicate code has negative impacts on software development and maintenance. Indeed a major drawback is when  an instance of duplicate code is changed for fixing bugs or adding new features, its correspondents have to be changed simultaneously.

The most popular reason of duplicate code is the Copy/Paste operations, and in this case the source code is exactly similar  in two or more places , this practice is discouraged in many articles, books, and web sites.However,  sometimes it’s not easy to practice the recommendations, and the developer chose the easy solution: the  Copy/Paste method. Continue reading “Tracking the hidden duplicate code in a C++ code base.”