Ivan Mitev In The Software Trenches

Technology weblog on .NET development and other things that make the world go round

July 03, 2006

Code Complexity Fun

I am starting working on a class that looks cute. Especially two of its functions are especially nice:


  • Func1 - 9 arguments, 300 LOC

  • Func2 - 15 arguments, 1000 LOC

I had not met a 1000 LOC function for a few years, so it is fun to see one again :) It even has a parameter about the GuiMode, which tells if it is called in a GUI context or not :) They don't come often better than that :)

UPDATE: This gets even funnier: Func1 actually used only 2 of its 9 arguments. Func2 had only 4 unused parameters... :)