By bloid
via jroller.com
Published: Sep 24 2007 / 10:18
While working on FEST, we have been trying to keep the number of method parameters to no more than one. The main reason is, IOHO, that a method having too many parameters (for us, 2+ parameters are usually "too many") doesn't communicate its intention that well, decreasing code readability and potentially making maintenance more difficult. Even worse, if those parameters are of the same type, it is easy to accidentally swap the parameters in a method call (I know...nothing new yet.)



Add your comment