Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1068013]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-19 15:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found