Link Details

Link 628977 thumbnail
User 355617 avatar

By piccoloprincipe
via css.dzone.com
Published: Jul 04 2011 / 09:58

The scenario of today follows from the previous article: you're reusing the parameter variable by assigning to it a new value. This time, we focus on the parameter case, and not to the generic violence against local variables. The refactoring is about introducing new, temporary variables to avoid assignment to formal parameters: the only assignment is made by PHP during the method call.
  • 6
  • 0
  • 1805
  • 3

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



Voters Against This Link (0)



    Debugging JavaScript
    Written by: Ashutosh Sharma
    Featured Refcardz: Top Refcardz:
    1. Design Patterns
    2. OO JS
    3. Cont. Delivery
    4. Java EE7
    5. HTML5 Mobile
    1. Java EE7
    2. Spring Annotations
    3. Git
    4. Java
    5. REST