Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 chanting in the Monastery: (6)
As of 2014-09-19 20:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (145 votes), past polls