In computer programming, we often avoid introducing global variable because it is bug-prone and hard to trace. Local variable is the first choice.

In designing systems, to control the oscillation of the system, we try to introduce quick local [negative] feedback loops to avoid major [negative] feedback loop with delays to be triggered, which often bring unfavourable consequences.

I was amazed when I discovered the similarity of these two ideas today. Do they belong to some more general principle?