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 287679 thumbnail
User 410289 avatar

By CodeJustin
via codeutopia.net
Published: Nov 12 2009 / 15:21

You need to add some new functionality to your function or class. Let’s say you need to remove all objects stored, but optionally also call a method on them. It’s pretty simple, isn’t it? Let’s just add a parameter to removeAllObjects! If you make it true, the additional method is called, otherwise not. Except it’s not really such a good idea at all…
  • 10
  • 0
  • 1859
  • 0

Comments

Add your comment
User 410289 avatar

CodeJustin replied ago:

0 votes Vote down Vote up Reply

A few simple but very helpful tips to keep in mind when using parameters.

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 (10)



Voters Against This Link (0)