Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Working with old code

by Your Mother (Bishop)
on Jun 26, 2020 at 17:04 UTC ( #11118571=note: print w/replies, xml ) Need Help??


in reply to Working with old code

Write tests for every single part of the business in:out you can possibly figure out. Perl testing, even system testing, is extremely easy and flexible once you get a feel for it. Once you have a deep test suite, you can refactor with confidence and speed because you will know immediately if you broke something or changed behavior.

Replies are listed 'Best First'.
Re^2: Working with old code
by toolic (Bishop) on Jun 26, 2020 at 20:22 UTC
    ++ ... and run coverage (Devel::Cover) to prove the tests hit what you expect them to hit.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2020-12-01 19:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (20 votes). Check out past polls.

    Notices?