Re: Perl Tools For Refactoring.

Adam Sroka <[email protected]> Wed, 25 Aug 2010 15:23:37 -0700
Newsgroups gmane.comp.programming.refactoring
Message-ID <[email protected]>
It has been almost two years since I tried it. I remember being marginally
impressed, but I went back to using emacs in short order. I'm not sure what
changes or improvements they have made since then. Could be that the plugin
configuration was borked in the version you tried (Tends to happen in
Eclipse, IME, because the plugin architecture is not very smart about
versioning.)

On Wed, Aug 25, 2010 at 2:40 PM, Richard <[email protected]> wrote:

>
>
>
> In article <[email protected]<AANLkTi%3DKa_gh2m6LYi67Jv7TGWnGu%3D4OfoBOWL11-Mfb%40mail.gmail.com>
> >,
>
> Adam Sroka <[email protected] <adam.sroka%40gmail.com>> writes:
>
> > The EPIC plugin for Eclipse has some support.
>
> Interesting!
>
> I tried it out briefly. It has Extract Method. Its reasonable,
> although it could still use some improvement. For instance:
>
> sub foo
> {
> print "This is a test";
> print "This is another test.";
> }
>
> foo;
>
> when Extract Method was applied to the two print lines, I got:
>
> sub foo
> {
> my () = test ();
> my () = anotherTest ();
> }
> sub anotherTest
> {
> print "This is another test.";
> return ();
> }
>
> sub test
> {
> print "This is a test";
> return ();
> }
>
> foo;
>
> This produces non-functional perl code:
>
> Can't declare stub in "my" at /tmp/foo.pl line 3, near ") ="
> Execution of /tmp/foo.pl aborted due to compilation errors.
>
> It clearly has some more work that's needed on it, but its better
> than nothing. I haven't tried any more complicated experiments where
> it is supposed to infer return values and needed parameters to the
> sub. You may find this refactoring suite a useful guide in giving
> EPIC's Extract Method a run for its money:
>
> <
> http://legalizeadulthood.wordpress.com/2010/02/02/c-refactoring-tools-test-suite-available/
> >
>
> --
> "The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
> <http://legalizeadulthood.wordpress.com/the-direct3d-graphics-pipeline/>
>
> Legalize Adulthood! <http://legalizeadulthood.wordpress.com>
>  
>


[Non-text portions of this message have been removed]



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/refactoring/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/refactoring/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/