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

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));'

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2016-08-24 05:09 GMT
Find Nodes?
    Voting Booth?
    The best thing I ever won in a lottery was:

    Results (338 votes). Check out past polls.