Why Patching Globals Is Harmful
kettanaito.com
Why Patching Globals Is Harmful
The human brain does quite a bit of optimization on its own, and screws up on its own, no matter what you try to tell it in school. But this fully wraparound recursive optimizer would have no protected level that was optimizing. All the structure of optimization would be subject to optimization itself. And that is a sea change which breaks with the
... See moreConstants have a kind of global visibility or reachability: as long as you know the path to a constant through the classes and/or modules in which it’s nested, you can get to that constant. Stripped of their nesting, however, constants definitely aren’t globals.
Software development has many contraindications where the “right” approach in one situation is the wrong approach in another situation.