2 ms·
Adding methods isn't patching or altering. It doesn't change anything because nothing existing knows or depends on the added methods. If you want to show that
by kazinator 5y ago
Adding methods isn't patching or altering.
It doesn't change anything because nothing existing knows or depends on the added methods.
If you want to show that something is rotten/bad, you have to show that existing methods are being redefined. This article makes no accusation that ActiveSupport adds this; it just gives evidence of and discusses methods being added.
There is a problem when you don't have Lisp style symbol packages. If two developers add a frob method to the String class, they have a clash.
With Lisp style packages, they can make it abc:frob and xyz:frob: different frob symbols in different packages. They are completely unrelated and so the methods just coexist.
But if you have no such thing and classes are your namespace, then ... oops!