23 Feb
2005
23 Feb
'05
5:49 p.m.
On Wed, Feb 23, 2005 at 06:22:30PM +0100, Florent Guillaume wrote:
There's usually no problem with using refresh and monkey-patching.
Only badly written products that monkey patch by first unconditonnaly saving the old version of a function/method, then replacing it with some new one that does stuff and then calls the old one, may fail.
That's probably what I saw. Aside from refresh, are there other reasons you consider that technique bad? I've often used it as a sort of in-place decorator. The obvious alternative is to copy/paste the code from the original method. Is that what you prefer? -- Paul Winkler http://www.slinkp.com