Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Safer monkey-patching

by choroba (Chancellor)
on Jan 19, 2012 at 09:51 UTC ( #948732=note: print w/replies, xml ) Need Help??


in reply to Safer monkey-patching

Isn't the Factory_design_pattern also a solution to this? (It requires a complete rewrite of the original class, though :-)

Replies are listed 'Best First'.
Re^2: Safer monkey-patching
by tobyink (Abbot) on Jan 19, 2012 at 10:21 UTC

    If we were able to rewrite the original class, then we wouldn't be in this situation.

      Well, yeah. But if we write our classes using Factories, we do not get anyone into the situation.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://948732]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2016-12-03 18:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (56 votes). Check out past polls.