TruerWords Logo
Google
 
Web www.truerwords.net

Search TruerWords

Welcome
Sign Up  Log On

“RE: Optimize Your UserTalk: Remove Extra Variables”

From: Sean McMains In Response To: 3062  Optimize Your UserTalk: Remove Extra Variables
Date Posted: Saturday, May 3, 2003 9:25:11 AM Replies: 1
   
Enclosures: None.
I'd posit that the "Avoid Single-Use Variables" rule should depend on your goal. If you're coding for maximum efficiency, then this makes sense. However, in many cases, assigning a return value to a meaningfully named variable can make the code that much easier to read, and therefore, to maintain later. It comes down to machine-time versus people-time in some cases -- which is more important for the application at hand?

Discussion Thread:
Trackbacks:

There are no trackbacks.


Until August 31
My Amazon sales
benefit the PMC

Homepage Links

Apr 1 - Aug 31
Ad revenue
benefits the PMC


TruerWords
is Seth Dillingham's
personal web site.
Read'em and weep, baby.