monkey patch

Definition from Wiktionary, the free dictionary
Jump to navigation Jump to search

English[edit]

Alternative forms[edit]

Etymology[edit]

EB1911 - Volume 01 - Page 001 - 1.svg This entry lacks etymological information. If you are familiar with the origin of this term, please add it to the page per etymology instructions. You can also discuss it at the Etymology scriptorium.
Particularly: “Very intriguing term. Anyone able to find how this arose?”

Noun[edit]

monkey patch (plural monkey patches)

  1. (programming, neologism) A patch which alters the behaviour of a program by forcefully 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)

  1. (programming, neologism) To alter the behaviour of a program by forcefully 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 your application.js, to Monkey Patch a JavaScript click() event: