Skip to main content
Number of arguments per method

Limit the number of arguments allowed for each method to keep your code easy to read and maintain.

Lorenzo Frattini avatar
Written by Lorenzo Frattini
Updated over 6 years ago

Rationale

The more arguments a method has, the more complex it is. Having a long argument list is a symptom that something in the code has grown so large that it cannot be effectively handled.  

Did this answer your question?