Hacker News new | past | comments | ask | show | jobs | submit login

Yea, monkey patching is helpful when dealing with a 3rd party library that needs to be tweaked 10 layers up the inheritance chain without having to change the object type all over the whole system.

If it gets overused it causes problems but there are times when it is close to a miracle. That said, there is a reason ruby devs are so test conscious.




Yeah - of course monkey patching has good uses :) The problem is that when you're trying to debug an issue, it's another thing that you'll have to remember - "is anyone monkey patching something in here?"


Yea, I can't work on Ruby codebases without something like Rubymine where I can jump straight to the declaration for that exact reason.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: