I keep reading about the dangers of cluttering the global namespace with global variables and functions.
I just read that the 'old' way of defining global functions is problematic especially in situations where you have several developers working on the same project.
I understand and want to write the best code I can but the above statement confuses me.
Rarely do developers work on the same page of a project and I would assume that the global namespace would clear as a user changes pages in the project.
Is this not the case?