Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: The Rules of Optimization Club

by petdance (Parson)
on Mar 30, 2012 at 23:58 UTC ( #962703=note: print w/ replies, xml ) Need Help??


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

You're inferring a lot that I didn't say or imply.

You want to optimize for energy consumption and heat output? Go ahead. Just measure before and after so you know that it was worth your time.

While I didn't say anything about programmer vs. processor time, the rules about measuring apply there as well. Depends on if you're building a compiler or a one-time data conversion script. And how much does your programmer cost? Again, measure.

Measure measure measure so you know for sure.

xoxo,
Andy


Comment on Re^2: The Rules of Optimization Club
Re^3: The Rules of Optimization Club
by JavaFan (Canon) on Mar 31, 2012 at 07:45 UTC
    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.

      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.
      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
Node Status?
node history
Node Type: note [id://962703]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2014-12-29 08:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (185 votes), past polls