|
|
|
|
|
by matheweis
487 days ago
|
|
> A Few Rules For Using Globals:
> If you change observable state, restore it I’m sorry but no. Humans are human and mistakes will be made. I’ve lost count of the number of esoteric bugs I’ve had to track down due to global state being changed and not put back properly. If you have to qualify a pattern with rules that are easily forgotten or open to corner case bugs, it’s far better to just not use that pattern in the first place. |
|