This link has been bookmarked by 23 people . It was first bookmarked on 24 Apr 2008, by Boris Mann.
-
01 Jul 14
-
A monkey patch is a way to extend or modify the run-time code of dynamic languages without altering the original source code. This process has also been termed duck punching and shaking the bag
-
-
23 Mar 12
-
25 Feb 12
-
29 Jul 10
-
29 May 10
-
12 Mar 10
-
Monkey patch
-
Well, I was just totally sold by Adam, the idea being that if it walks like a duck and talks like a duck, it’s a duck, right? So if this duck is not giving you the noise that you want, you’ve got to just punch that duck until it returns what you expect.
-
-
31 Jan 10
-
16 Sep 09
-
09 Jul 09
tsp spInteressant, aber auch gefährlich: selbst modifizierender code: monkey patch, duck punching
Die gute Seite:
Monkey patching is used to:
* Replace methods/attributes/functions at runtime, e.g. to stub out a function during testing;
* Modify/extend -
22 May 09
-
24 Sep 08
-
13 Jul 08
-
If the product you have changed changes with a new release it may very well break your patch.
-
If two modules attempt to monkey-patch the same method, one of them (whichever one runs last) "wins" and the other patch has no effect. (unless monkeypatches are written with pattern like
alias_method_chain) -
It creates a discrepancy between the original source code on disk and the observed behaviour that can be very confusing when troubleshooting, especially for anyone other than the monkey patch author.
-
A monkey patch can lead to upgrade problems when the patch makes assumptions about the patched object that are no longer true.
-
-
11 Apr 08
-
22 Mar 08
-
21 Mar 08
Boris MannNow that I understand what monkey patching *IS* ... it sort of applies to the way many things in Drupal can be overridden using hooks. Of course, it doesn't modify PHP itself, so perhaps it doesn't count.
-
20 Nov 07
-
19 May 07
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.