zedr/clean-code-python

Possibly incorrect: "Zero arguments is the ideal case"

andreobriennz opened this issue · 1 comments

In the section "Function arguments (2 or fewer ideally)" it says:
"Zero arguments is the ideal case. One or two arguments is ok, and three should be avoided."
However, I think it's typically best to have at least 1 argument, as most functions with zero arguments aren't pure functions and aren't easily testable

Personally I prefer the wording in Clean Code JavaScript:
"One or two arguments is the ideal case, and three should be avoided if possible" (https://github.com/ryanmcdermott/clean-code-javascript#function-arguments-2-or-fewer-ideally)

I discovered the original book says that zero arguments are ideal. It seems very odd to me, but since that's what the book says I'll close this issue