2 ms·
https://www.hyrumslaw.com/ https://www.hyrumslaw.com/ Monkey-patching is cool, until it breaks the world. In hindsight the Javascript language ought to prevent
by tialaramex 5y ago
https://www.hyrumslaw.com/ https://www.hyrumslaw.com/
Monkey-patching is cool, until it breaks the world. In hindsight the Javascript language ought to prevent this sort of trick from working, but when it was invented none of our modern web was imaginable, so, too bad.
To anybody inventing new languages: If you think there will ever be too many programmers of your language to all fit in one room for an intervention about monkey-patching, you need to ensure it cannot happen. Do it now.