# Friday, August 18, 2006
« Long Computer Names and BizTalk Installa... | Main | Facebook API !!!! »

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]

Ed B.

posted on Friday, August 18, 2006 3:48:23 PM (Eastern Daylight Time, UTC-04:00)  #    Comments [1] Trackback
Tracked by:
Ed Squared  [Trackback]
http://www.edsquared.com/PermaLink,guid,57df870b-8787-4529-90eb-424be03023f3.asp... [Pingback]
Thursday, October 12, 2006 5:36:09 PM (Eastern Daylight Time, UTC-04:00)
Can't imagine what application that could be! Though, if I recall, there was another _overloaded_ version of that same function with _more_ parameters, no? Good luck with that one! :)

/tim
Tim A.
OpenID
Please login with either your OpenID above, or your details below.
Name
E-mail
(will show your gravatar icon)
Home page

Comment (Some html is allowed: a@href@title, b, blockquote@cite, em, i, strike, strong, sub, sup, u) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Enter the code shown (prevents robots):

Live Comment Preview