Skip to main content
The Moths of Programming with Dino Dini: Chapter 1 - Global Variables Are Bad

The Moths of Programming with Dino Dini: Chapter 1 - Global Variables Are Bad

By Dino Dini

The moths of programming are ideas in the software engineering industry that have become pervasive due to virality rather than reality.

This chapter concerns the mistaken idea that "Global Variables are Bad"
Where to listen
Apple Podcasts Logo

Apple Podcasts

Google Podcasts Logo

Google Podcasts

Overcast Logo

Overcast

Pocket Casts Logo

Pocket Casts

RadioPublic Logo

RadioPublic

Spotify Logo

Spotify

The Moths of Programming with Dino Dini: Chapter 1 - Global Variables Are Bad
The Moths of Programming with Dino Dini: Chapter 1 - Global Variables Are Bad
The moths of programming are ideas in the software engineering industry that have become pervasive due to virality rather than reality. Although they may have some truth to them, they are often inaccurate, misleading, distracting or even damaging. I call them moths because they flutter around in a programmer's mind, getting in the way of truly good practice. This first chapter considers the classic moth "Global Variables Are Bad". I believe this moth is a hangover from times gone by with the limitations of early programming languages, and is no longer relevant. Further an obsession with this moth has closed the minds of programmers everywhere to  better way of organizing code, perhaps causing untold damage. The smoking gun? Singletons.
32:16
March 30, 2020