Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 imbibing at the Monastery: (9)
As of 2017-02-22 20:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (335 votes). Check out past polls.