I’ve been yack yack yacking about clone detection and Agent Ralph. It’s time to put up or shut up. This post is some screen shots of Agent Ralph in action.
Agent Ralph’s front end is a Resharper plug-in. Any clones detected are passed up to the plug-in which presents them to the user as highlights and quick [...]
Archives for posts tagged ‘code-clones’
Agent Ralph In Action
Wednesday, 5 August 2009
An Idea For Robust Clone Detection Using Abstract Syntax Trees
Sunday, 19 July 2009
My last post concluded with the promise to go into detail on some implementation ideas of my clone analyzer.
As I argued previously, a text based matching tool is not good enough, it’s simply too easy to fool. What we want is a matching tool that considers the full syntax of the language being analyzed. [...]
Code Clones
Saturday, 30 May 2009
Code clones are code constructs or functionality that is repeated throughout a system. It’s a well documented problem. In short, the issue is duplication of logic. Take this example:
double Area(double radius)
{
return 3.14*Math.Pow(radius, 2);
}
double ComputeArea(double radius)
{
return 3.14*Math.Pow(radius, 2);
}
Two functions identical in every way except name. The cost of future [...]