The Python Oracle

Why are global variables evil?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Isolated

--

Chapters
00:00 Question
00:25 Accepted answer (Score 219)
02:27 Answer 2 (Score 52)
03:28 Answer 3 (Score 17)
07:12 Answer 4 (Score 4)
08:02 Thank you

--

Full question
https://stackoverflow.com/questions/1915...

Accepted answer links:
[Spaghetti code]: https://en.wikipedia.org/wiki/Spaghetti_...
[Global Variables Are Bad - Wiki Wiki Web]: http://c2.com/cgi/wiki?GlobalVariablesAr...
[Why is Global State so Evil? - Software Engineering Stack Exchange]: https://softwareengineering.stackexchang...
[Are global variables bad?]: https://stackoverflow.com/questions/4846...
[Side effect (computer science) - Wikipedia]: https://en.wikipedia.org/wiki/Side_effec...)
[Why are side-effects considered evil in functional programming? - Software Engineering Stack Exchange]: https://softwareengineering.stackexchang...
[Functional programming - Wikipedia]: https://en.wikipedia.org/wiki/Functional...

Answer 3 links:
[pure functions]: https://en.wikipedia.org/wiki/Pure_funct...
[[1]]: http://www.cs.nott.ac.uk/~pszgmh/pih.htm...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #globalvariables #sideeffects

#avk47