monkey patch
Jump to navigation
Jump to search
English
[edit]Alternative forms
[edit]Etymology
[edit]Apparently from earlier guerilla patch (“code that sneakily changes other code”), understood as gorilla patch. A monkey patch was then a more carefully written instance of such a patch.[1] Or simply derived from monkey (“to mess with”, verb).
Noun
[edit]monkey patch (plural monkey patches)
- (programming slang) A patch which alters the behaviour of a program by forcibly overriding aspects of the original code at runtime.
Verb
[edit]monkey patch (third-person singular simple present monkey patches, present participle monkey patching, simple past and past participle monkey patched)
- (programming slang, transitive) To alter the behaviour of a program by forcibly overriding aspects of the original code at runtime.
- 2007, Philip C. Plumlee, Test Driven Ajax (on Rails):
- Even though that works with some browsers, others provide Anchor objects without
click()
methods. Add this magic code to yourapplication.js
, to Monkey Patch a JavaScriptclick()
event:
References
[edit]- ^ Alexander Limi, Shane Hathaway (2005 December 23) “Monkey patch”, in Plone Foundation[1], archived from the original on 2008-06-04
Further reading
[edit]- monkey patch on Wikipedia.Wikipedia