Algorithms as Objects

Algorithms as Objects

Helper functions as nested closures, but it’s still too long

When we refactor our long vertical functions into helpers, we are apt to end up with wide horizontal parameter lists. Long parameter lists are difficult enough to wrangle as-is; the more parameters a function has, the more difficult it is to properly unit test. I’ve got 99 problems, give me two more Free-floating helper functions don’t just tend towards long parameter lists.

Source: gieseanw.wordpress.com