March 18, 2005

Using scoring metrics to define complex code and identify areas to refactor

Mark Miller wrote an interesting article on source code metrics and offers an interesting idea on a scoring mechanism to define complex code and provides for a new way at looking at code analysis. By looking at the code complexity by the ops usage itself, he believes you can zero in on code that needs refactoring. Very interesting idea.

This is a neat idea. As he points out, the currently available software metrics out there are pretty weak at quickly calculating the complexity, and hence the cost of maintenance of the software we create is much higher than it needs to be. His approach to solve this 'pain' is quite interesting.

I downloaded DXCore and the CRPlugins DLLs, but I couldn't get it to work in my C# solution. I keep getting a MissingMethodException for DevExpress.CodeRush.Core.CommandServices.Execute. Not sure what to make of it. However, in Mark's article, he does show how the output SHOULD look. Perhaps you will have better luck than I did.

Great article. Happy reading.

Posted by SilverStr at March 18, 2005 01:00 PM | TrackBack