http://qs1969.pair.com?node_id=1020527


in reply to Re: Perl and Java comparison
in thread Perl and Java comparison

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