A Side Benefit from Extracting Repeated Code

Extracting repeated code enabled me to see other places in the original methods where I could eliminate superfluous code.

Data::Presenter version 0.43:
    sub get_data_count {
        my $self = shift;
        my $count = '';
        $count = _count_engine($self);
        return $count;
    }
Data::Presenter version 0.44:
    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