Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^5: Call Grandparent Method, Skipping Parent

by Dallaylaen (Scribe)
on Jun 24, 2013 at 13:04 UTC ( #1040432=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Call Grandparent Method, Skipping Parent
in thread Call Grandparent Method, Skipping Parent

Well, I'm not talking about refactoring as in "a great adventure", but rather about a small and controlled change - spawning an empty subclass, then moving one method "as is" into that subclass.

Given the circumstances you describe, this may be dangerous too. For instance, someone may already have started calling methods by full name. Or, maybe, the setup() method shares some global variables with the rest of the code. Still my suggestion was nowhere near "rewriting all the code to make it better"!


Comment on Re^5: Call Grandparent Method, Skipping Parent

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2014-07-14 10:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (257 votes), past polls