Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Safer monkey-patching

by choroba (Canon)
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
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://948732]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (1)
As of 2015-10-04 05:39 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (99 votes), past polls