Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 taking refuge in the Monastery: (7)
As of 2014-12-28 06:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (178 votes), past polls