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

Re: Completely rewriting someone else's deprecated code...

by rvosa (Curate)
on Jul 30, 2005 at 00:37 UTC ( [id://479559]=note: print w/replies, xml ) Need Help??


in reply to Completely rewriting someone else's deprecated code...
in thread Seeking advice about learning another's code

Might I suggest using a revision control system instead of (or in addition to) copying the source to your own "work copy"? You can simply run subversion on your own machine, and you can even commit from within Komodo, for instance. You'll feel far, far more comfy making changes if you can always revert to whatever earlier version you ever committed.

Oh yeah, and write some tests, to make sure you don't break anything while working through the code.

And run the code through perltidy (possibly after deparsing).
  • Comment on Re: Completely rewriting someone else's deprecated code...

Replies are listed 'Best First'.
Re^2: Completely rewriting someone else's deprecated code...
by dragonchild (Archbishop) on Aug 04, 2005 at 14:10 UTC
    I wrote that four years ago. In that time, a few things have happened, like the creation of subversion and improved testing facilities within Perl. I fully agree with everything you're saying, and would add those items in as part of a refactoring process.

    My criteria for good software:
    1. Does it work?
    2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-19 04:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found