> Since globals defined in different JavaScript files share a common namespace, I often found it convenient to reference globals...I knew all along that these were bad habits
This line resonated with me. In my first CS course (Intro to programming), I learned about why using globals can be problematic.
A good reminder that engineering is all about trade-offs. Sacrifice future maintainability for present day productivity.
This line resonated with me. In my first CS course (Intro to programming), I learned about why using globals can be problematic.
A good reminder that engineering is all about trade-offs. Sacrifice future maintainability for present day productivity.