[wp-trac] [WordPress Trac] #18785: Modernize screen functions

WordPress Trac wp-trac at lists.automattic.com
Mon Oct 24 02:44:32 UTC 2011

#18785: Modernize screen functions
 Reporter:  nacin             |       Owner:  nacin
     Type:  task (blessed)    |      Status:  assigned
 Priority:  normal            |   Milestone:  3.3
Component:  Administration    |     Version:  3.3
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |

Comment (by mikeschinkel):

 Replying to [comment:61 scribu]:
 > ''"If you don't use a variable more than once, don't create it."''

 As an aside, there are two (2) good reasons to create a variable even if
 you only use it once:

 1. It is impossible to single-step through chained methods when using a
 PHP debugger like PhpStorm, NetBeans, Zend Studio, etc.

 2. Using well-named variables documents complex code and is a practice
 advocated by Steve McConnell, author of ''"The single most influential
 book every programmer should read":''

  - http://stackoverflow.com/questions/1711/what-is-the-single-most-


Ticket URL: <http://core.trac.wordpress.org/ticket/18785#comment:62>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list