Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^2: Perl and Java comparisonby tobyink (Canon) |
on Feb 25, 2013 at 14:02 UTC ( [id://1020527]=note: print w/replies, xml ) | Need Help?? |
In the programmer-time versus CPU-time comparison, it's useful to know how many times the program will be executed. If the program is a data munging routine that will be written, run once on the test database, and then once on the live database, then never used again, the programmer's time is probably a lot more precious than the execution time. But if the program is executed dozens of times each day, by hundreds of users, optimizing the run-time of the program, even at the expense of programmer time seems worthwhile.
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
In Section
Seekers of Perl Wisdom
|
|