Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Perl Testing and Quality Assurance

by gjb (Vicar)
on Jun 02, 2003 at 12:02 UTC ( #262347=note: print w/ replies, xml ) Need Help??

in reply to Perl Testing and Quality Assurance

Probably this is obvious to all, but this is going about the wrong way round (not that you can help it, mind). The Right Way to Do It(tm) is to first write the test, then the code it's supposed to test. At least if you buy into the extreme programming philosophy and unit testing approach.

It's better to develop tests and code in that order since at the point you write the test, it's still a black box, and you're forced to think ahead of border and corner cases. In a way, the developer is more open-minded towards his own work before he's done it than afterwards.

Again, it doesn't apply to your particular situation, but it's something that might be worth keeping in mind for future projects. And yes, it's all in the books mentioneed above, but I like to stress it nevertheless ;-)

And again, yes, I do program that way and enjoy it a lot.

Just my 2 cents, -gjb-

Comment on Re: Perl Testing and Quality Assurance

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (13)
As of 2015-11-25 14:38 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (677 votes), past polls