6 ms·
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
by manume 2y 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.
- p_l 2y agoEspecially 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.
- x3n0ph3n3 2y agoModule#prepend was introduced in Ruby 2.0, in 2013, which was the solution to monkey patching.
- dragonwriter 2y agoWell, that and Module#refine.