Re:3.5 Years, 500k Lines of Go
by brightball on Friday March 24, 2017 @11:40AM
(#13949637)
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?"
Re:3.5 Years, 500k Lines of Go
by brightball on Friday March 24, 2017 @01:19PM
(#13950538)
Yea, I can't work on Ruby codebases without something like Rubymine where I can jump straight to the declaration for that exact reason.
Other languages, like those with stronger type systems, will not allow this to happen.