Monkey Patch - Etymology

Etymology

The term monkey patch seems to have come from an earlier term, guerrilla patch, which referred to changing code sneakily at runtime. The word guerrilla, homophonous with gorilla, became monkey, possibly to make the patch sound less intimidating.

The definition of the term varies depending upon the community using it.

In Python, the term monkey patch only refers to dynamic modifications of a class or module at runtime, motivated by the intent to patch existing third-party code as a workaround to a bug or feature which does not act as desired. Other forms of modifying classes at runtime have different names, based on their different intents. For example, in Zope and Plone, security patches are often delivered using dynamic class modification, but they are called hot fixes.

In Ruby, the term monkey patch means any dynamic modification to a class and is often used as a synonym for dynamically modifying any class at runtime.

Read more about this topic:  Monkey Patch

Famous quotes containing the word etymology:

    The universal principle of etymology in all languages: words are carried over from bodies and from the properties of bodies to express the things of the mind and spirit. The order of ideas must follow the order of things.
    Giambattista Vico (1688–1744)

    Semantically, taste is rich and confusing, its etymology as odd and interesting as that of “style.” But while style—deriving from the stylus or pointed rod which Roman scribes used to make marks on wax tablets—suggests activity, taste is more passive.... Etymologically, the word we use derives from the Old French, meaning touch or feel, a sense that is preserved in the current Italian word for a keyboard, tastiera.
    Stephen Bayley, British historian, art critic. “Taste: The Story of an Idea,” Taste: The Secret Meaning of Things, Random House (1991)