Загрузка видео...
Не удалось загрузить видео
My Global Variables Rant
71,824 просмотров • 1 год назад •via X (Twitter)
Комментарии: 11

no bathrobe, opinion disregarded

The federal agency responsible for protecting the environment in the US will stop requiring most polluters to report their emissions of carbon dioxide, methane and other greenhouse gases that cause #climatechange. ✍️@stefancanderson @propublica

I have pointed this out for over 20 years. To the CPU there is no such thing as globals or locals, both only exist in the mind of the programmer. They are just places in memory.

That's right, that's why I just use ENV variables.

okay global variables are not tht global … (this legit made me think for awhile :)

Your vars are not global enough. I store all mine on the blockchain.

In C, a "global" variable has a logical scope. But if you think of toy languages as JavaScript in the browser, "global" has almost literally the same meaning as in "global warming". 🤣

U r only missing a bathrobe!

How you achieve a program that is correct, simple, and efficient (in that order) is up to you. When you do discover the most elegant solutions, they tend to roughly align with all the classic design principles and patterns.

Totally agree. 👍🏻

@NASA doesn't approve that to be used in their codebase
