Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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?

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 romping around the Monastery: (7)
As of 2015-07-03 00:10 GMT
Find Nodes?
    Voting Booth?

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

    Results (47 votes), past polls