Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: general advice finding duplicate code

by aquarium (Curate)
on Jun 22, 2011 at 03:57 UTC ( #910847=note: print w/replies, xml ) Need Help??

in reply to general advice finding duplicate code

Thank you everyone for the great help. I ended up using CPD with very good result. Amazingly enough it even ran straight from the link to the java web start. I was worried that any automated tool might have problems as the php also contains html and vml(ugh). But the output shows clearly that about 20 or so php files (significantly) have in common in the order of 100-150 lines of code in various (specified) places. So after doing this dedupe, should cut another several thousand lines of code. Trying to get to a code base where it actually becomes maintainable by some mere mortal like myself or someone else. the code was all written by a single author.
the hardest line to type correctly is: stty erase ^H
  • Comment on Re: general advice finding duplicate code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2020-06-05 19:33 GMT
Find Nodes?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?

    Results (40 votes). Check out past polls.