111 ms·
I think the important distinction is that Ruby/Python monkey-patching work within the defined semantics of the language, whereas this is targeting implementatio
by haberman 12y ago
I think the important distinction is that Ruby/Python monkey-patching work within the defined semantics of the language, whereas this is targeting implementation-specific details of one particular runtime.
- tedunangst 12y agoAt the end of the day however, it's still patching code you don't own. Doesn't the term strongly imply modifications outside the scope of the author's intentions? Even in ruby and python, monkey patching is rarely the documented means to modify a library's behavior.
- zurn 12y agoHooking is also is widely used for a "call this function before doing x" type extension API. Eg. https://www.gnu.org/software/emacs/manual/html_node/elisp/Hooks.html https://www.gnu.org/software/emacs/manual/html_node/elisp/Ho... https://api.drupal.org/api/drupal/includes%21module.inc/group/hooks/7 https://api.drupal.org/api/drupal/includes%21module.inc/grou... https://msdn.microsoft.com/en-us/library/windows/desktop/ms632589%28v=vs.85%29.aspx https://msdn.microsoft.com/en-us/library/windows/desktop/ms6...