Extracting repeated code enabled me to see other places in the original methods where I could eliminate superfluous code.
sub get_data_count { my $self = shift; my $count = ''; $count = _count_engine($self); return $count; }
sub get_data_count { my $self = shift; _count_engine($self); }
Previous | Back to start of show | Next |
Slide: 15 side_benefit | © 2003 James E. Keenan |