Hacker News new | ask | show | jobs
by manume 719 days ago
Hearing people still mention "monkey patching" always makes me chuckle... I haven't "monkey patched" anything in Ruby in > 5 years, and I don't see it in any of the popular libraries/gems anymore either.
1 comments

Especially when the big difference is that Ruby had proper OO system that allowed patching, when necessary, to be done in much saner way...

whereas the origin of monkey patching seems to by Python with its totally broken magical method names and kitbashed object model.

Module#prepend was introduced in Ruby 2.0, in 2013, which was the solution to monkey patching.
Well, that and Module#refine.