4 ms·
Ruby has a culture around it too: https://www.justinweiss.com/articles/3-ways-to-monkey-patch-without-making-a-mess/ https://www.justinweiss.com/articles/3-ways
by mikepurvis 7y ago
Ruby has a culture around it too: https://www.justinweiss.com/articles/3-ways-to-monkey-patch-without-making-a-mess/ https://www.justinweiss.com/articles/3-ways-to-monkey-patch-...
And you can get some of the patching effect in any language with uniform function/method calls, though typically with a little more scoping and thus less ability to inflict unexpected side effects: https://en.wikipedia.org/wiki/Uniform_Function_Call_Syntax https://en.wikipedia.org/wiki/Uniform_Function_Call_Syntax
- badosu 7y agoFor pretty much the past decade (specially the last few years) I feel the culture has shifted to consider core monkey patches as a pretty bad practice.
- hombre_fatal 7y agoSure, but it's also a bad practice in Javascript.
- joliv 7y agoAnd Swift! https://docs.swift.org/swift-book/LanguageGuide/Extensions.html https://docs.swift.org/swift-book/LanguageGuide/Extensions.h...