Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re:^N Self-improvement and TMTOWTDI

by pdcawley (Hermit)
on Jan 25, 2003 at 00:33 UTC ( #229766=note: print w/ replies, xml ) Need Help??


in reply to Re^5: Self-improvement and TMTOWTDI
in thread Self-improvement and TMTOWTDI

You've seen Preface (PERl REFACtoring Engine) then? I still can't quite believe that I got the Extract Method refactoring working. The way it works is utterly evil, but it is possible (and, AFAICT from the spike I did) should work in many cases.

Detecting the lexical variables involved in a code segment by repeatedly evaling and modifying the same section of code based on $@ until compiles successfully is, frankly, weird. Especially when, to get things to be compiled in the right context you had to do some magic with coderefs in @INC.

Once I've got Pixie good and stable, I really should go and revisit Preface...


Comment on Re:^N Self-improvement and TMTOWTDI
Replies are listed 'Best First'.
Re^N: Self-improvement and TMTOWTDI
by adrianh (Chancellor) on Jan 25, 2003 at 00:57 UTC
    You've seen Preface (PERl REFACtoring Engine) then?

    Actually no - where is it (the sourceforge page doesn't appear to have any code)?

    I'd just played around with writing my own for a day or so a few years back, but the code rapidly became too evil for my tastes :-)

      Ah yes, nothing actually got released, but I thought there was something in the CVS. However, if I go back to it I'll likely be throwing everything away anyway, having learned what I need from the spike.

      Ah yes, just checked again, CVS definitely has working code. Take a look at 'Refactor.pm' for the basic nastiness of how the method works. Reflex::Def::Module is also a source of scary magic...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2015-07-30 00:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls