
2/21/2023
What this post added
This post argues against the use of monkey patching in Ruby, highlighting its dangers including difficulty in upgrades, security vulnerabilities, increased technical debt, and negative impact on open-source communities. It advocates for upstream contributions and provides alternatives like prioritizing upgrades or fixing bugs upstream. The post also discusses refinements, noting their performance drawbacks. The author shares an example of a monkey patch for MySQL query warnings that was eventually upstreamed into Rails.