Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Refactoring Perl 2 - Inline Method

by agianni (Hermit)
on Jun 27, 2007 at 16:05 UTC ( #623659=note: print w/ replies, xml ) Need Help??


in reply to Refactoring Perl #2 - Inline Method

One more thing I forgot to mention: Fowler suggests:

Don't inline if subclasses override the method; they cannot override a method that isn't there (Fowler p. 118)

In other words, if the method has been factored out to provide an easy override hook, leave it alone. This can present challenges if you have a large code base but I usually find that:

find . -exec grep that_method {} \; -print

does the trick nicely for finding such things

perl -e 'split//,q{john hurl, pest caretaker}and(map{print @_[$_]}(joi +n(q{},map{sprintf(qq{%010u},$_)}(2**2*307*4993,5*101*641*5261,7*59*79 +*36997,13*17*71*45131,3**2*67*89*167*181))=~/\d{2}/g));'


Comment on Re: Refactoring Perl 2 - Inline Method
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2014-11-29 10:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (204 votes), past polls