3 ms·
"The consensus I've seen is that it, in general, it's a bad idea. This is the same kind of cultural proscriptive advice the author says is not present in the Ru
by jamesbritt 17y ago
"The consensus I've seen is that it, in general, it's a bad idea. This is the same kind of cultural proscriptive advice the author says is not present in the Ruby culture."
From my corner of the Ruby universe there's not even consensus about using the term "monkey patching", or when to apply it. (I find the phrase more confusing than enlightening, as most of the time people are not making a distinction between a deliberate coding decision to re-open a class for a specific result, versus employing the technique to hack pre-existing code you cannot otherwise properly alter.)
About the closest thing I find to consensus is, "Don't be dopey when re-opening classes", especially if you are writing code for unknown end users. But I know of few people who frown on ever re-opening classes.