top | item 40765371

(no title)

manume | 1 year 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.

discuss

order

p_l|1 year ago

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.

x3n0ph3n3|1 year ago

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