LanX has asked for the wisdom of the Perl Monks concerning the following question:
Colleague asked me if I knew a method to compare modules where functions blocks where moved.
My first idea was to extract functions (probably with PPI or B::Xref ) and to diff them individually.
The next idea only to extract sums from the different blocks...
Than it occurred to me that a "semantic diff" could be a nice help for version control comments, and could also provide informations of other forms of refactoring. *
Any ready to use projects available?
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
*) found this in the mean time explaining the idea http://martinfowler.com/bliki/SemanticDiff.html
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: semantic diff for Perl code
by talexb (Chancellor) on Sep 14, 2017 at 19:55 UTC | |
by jonadab (Parson) on Sep 14, 2017 at 22:15 UTC | |
by talexb (Chancellor) on Sep 15, 2017 at 14:46 UTC | |
by LanX (Sage) on Sep 14, 2017 at 22:43 UTC | |
by LanX (Sage) on Sep 14, 2017 at 20:02 UTC | |
Re: Semantic diff for Perl code
by Anonymous Monk on Sep 14, 2017 at 21:05 UTC | |
by LanX (Sage) on Sep 15, 2017 at 14:36 UTC | |
Re: Semantic diff for Perl code
by Anonymous Monk on Sep 15, 2017 at 14:57 UTC |