> For the complete documentation index, see [llms.txt](https://nicologies.gitbook.io/awesome-programming-knowledge/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nicologies.gitbook.io/awesome-programming-knowledge/writing-better-code/books/code-complete/minimizing-scope.md).

# Minimizing Scope

> Other programmers prefer to keep their variables as local as possible because local scope helps
>
> intellectual manageability. The more information you can hide, the less you have to keep in mind at any
>
> one time. The less you have to keep in mind, the smaller the chance that you'll make an error because
>
> you forgot one of the many details you needed to remember.

From [Code Complete 2 edition page 250](https://books.google.com.au/books?id=LpVCAwAAQBAJ\&lpg=PA250\&ots=GHIqlcEhJO\&dq=code%20complete%20Minimizing%20Scope\&pg=PA250#v=onepage\&q\&f=true)
