Skip to content

Glossary: Refactoring and Clean Code

global mutable state

Also written: global variable, global, global data

Data that any code can change from anywhere, like the `data` list that `run` rewrites with the `global` keyword. It makes behavior hard to follow and test.

Where the book teaches it

Related terms

Side effect