in reply to Notes from the Refactoring Ward

I think more explicit variable names would help here. @todo is a generic name; all data is there to be processed at some point. How about @websites or @sites_to_be_scraped? Similarly, that for loop could be self documenting if variables were introduced:
for my $website (@websites) { my ($site_name, $db_key, $site_url) = @{ $website }; scrape_site( $site_name, $db_key, $site_url); # .... further processing }

-Mark

Replies are listed 'Best First'.
Re^2: Notes from the Refactoring Ward
by Anonymous Monk on Sep 09, 2005 at 00:01 UTC
    I think more explicit variable names would help here.

    If you're too explicit about what your code does right now, you're going to have to abstract it later.

    If you're too abstract, you're not saying anything specific about your code. You're going to have to clarify it for the maintainer.

    You can't win.