HTML5 Canvas
Written by: Simon Sarris
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Web Driver
  3. MVVM
  4. REST
  5. ADO.NET
  1. HTML5
  2. Ajax
  3. jQuery Selectors
  4. CSS Part 1
  5. Git

Link Details

Link 43844 thumbnail
User 111696 avatar

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.)
  • 11
  • 1
  • 1150
  • 0

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (11)



Voters Against This Link (1)