dev-aritra/clean-code-developer-checklist

Try to have functions with 3 arguments

Closed this issue · 0 comments

The point Try to have functions with 3 arguments does not express this thought - "The ideal number of arguments for a function is zero (niladic). Next comes one (monadic), followed closely by two (dyadic). Three arguments (triadic) should be avoided where possible. More than three (polyadic) requires very special justification—and then shouldn’t be used anyway."