You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since #91 was merged I would like to do a followup about package API
Anything that has more than 3 params should be rewritten to Parameter Object.
I've never seen a guideline, but in my experience a function that takes more than three or four parameters indicates one of two problems:
The function is doing too much. It should be split into several smaller functions, each which have a smaller parameter set.
There is another object hiding in there. You may need to create another object or data structure that includes these parameters. See this article on the Parameter Object pattern for more information.
The text was updated successfully, but these errors were encountered:
Since #91 was merged I would like to do a followup about package API
Anything that has more than 3 params should be rewritten to Parameter Object.
The text was updated successfully, but these errors were encountered: