August 18, 2006 7:48 PM
by Ed Blankenship
So... I was working with a client's application the other day and I got one of the funniest errors I have ever seen in my life. Gotta love it!
If you ever see this error (or similar) then you really need to think about maybe refactoring a little... Anybody care to guess the complexity of this method?
Error Message: "No overload for method MethodName takes '125' arguments."
Cyclomatic Complexity: 121 (extremely bad)Maintenance Complexity: 13,031 (very very bad)
[Stats care of the wonderful tool: CodeRush]
a@href@title, b, blockquote@cite, em, i, strike, strong, sub, sup, u
Hi! I am Ed Blankenship and a Product Manager at Microsoft for Visual Studio Online, Team Foundation Server, and the Application Lifecycle Management family of tools. I am an author of a few books, former Microsoft MVP of the Year, and a former ALM consultant.
Powered by Azure Websites
Site design by Jeremy Kratz