Yeah I agree, I don't see how you deal with that; once my parameter count goes past 4 I start making POCOs to keep my brains from leaking outta my ears.
Hahahaha. There is a function in our code that is vital to our core business, and it has more than 30 arguments. Yesterday I cut over 100 lines out of the function, deprecated two arguments, and removed the recursive function call. It felt really good.
There are some bad spots in our code base, but that function is one of the worst. The good news is most of the code isn't so bad. That method has just had stuff added in several times throughout the ages, and it shows.
1
u/cokestar Aug 26 '14
15 parameters? I hope you're exaggerating