Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: How to deal with old OO code that mixes instance methods with class methods

by educated_foo (Vicar)
on Dec 21, 2013 at 04:34 UTC ( #1068013=note: print w/ replies, xml ) Need Help??


in reply to How to deal with old OO code that mixes instance methods with class methods

3. Convert them to standalone utility functions
Do this. It was fashionable for awhile to add more rightward arrows to your code (see e.g. File::Spec vs. File::Spec::Functions). Then the fashion was to write standalone functions that dealt with this "OO" nonsense and call them a "DSL". All of these options were terrible.


Comment on Re: How to deal with old OO code that mixes instance methods with class methods

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2014-08-28 11:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (259 votes), past polls