Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Cleaning up Code

by jimX11 (Friar)
on Dec 16, 2008 at 15:16 UTC ( [id://730665]=note: print w/replies, xml ) Need Help??


in reply to Cleaning up Code

A test suite really helps when refactoring code.

You may be able to add tests to just this area of the code, depending on how much this code depends on the code around it.

If this code depends on code in lots of places, then adding tests would be harder. The tests help because you add them, change the code (refactor) and then run the tests to see if any test fails.

Knowing what to test and how much to test takes experience.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-23 19:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found