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 [...]
Archives for posts tagged ‘resharper’
Unnecessary Complexity Case Study #1: Untyped Enum Comparisons
Thursday, 7 May 2009
This post is the first in a series of posts on specific examples of unnecessary complexity. Consider this code: enum MyEnum { First, Second } public void Match1(MyEnum e) { if (e.ToString() == “First”) { } } The problem lies in the condition of the if. The developer is converting an enum instance [...]