Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Safer monkey-patching

by choroba (Abbot)
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 :-)


Comment on Re: Safer monkey-patching
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (12)
As of 2014-07-22 12:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (113 votes), past polls