Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: The Rules of Optimization Club

by JavaFan (Canon)
on Mar 31, 2012 at 07:45 UTC ( [id://962733]=note: print w/replies, xml ) Need Help??


in reply to Re^2: The Rules of Optimization Club
in thread The Rules of Optimization Club

one-time data conversion script.
I would not write tests for a one-time data conversion script. There's only one test for a one-time script: its run.

Replies are listed 'Best First'.
Re^4: The Rules of Optimization Club
by BrowserUk (Patriarch) on Mar 31, 2012 at 08:11 UTC

    Arguably, feeding the head of the 25GB input file to your one-liner and checking the output displayed looks right, is a different one-time script to the feeding it the whole thing and redirecting the output to the results file.

    But it's definitely a test worth doing :)


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    The start of some sanity?

      Of course, no disagreement there. I certainly would not write a test suite using Test::* for that.

        As may be obvious by now, neither would I :)

Re^4: The Rules of Optimization Club
by petdance (Parson) on Mar 31, 2012 at 15:35 UTC
    I don't think anyone is advocating writing tests for one-time data conversion scripts. Certainly I am not.

    I think you've confused all the things that you think I said into newer meta-things that I haven't said.

    Rule 6, "Testing will go on as long as it has to." only matters if you're optimizing. If you're not optimizing (or any sort of refactoring) that data conversion script, then no testing need take place.

    xoxo,
    Andy

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://962733]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (8)
As of 2024-04-16 08:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found