Hacker News new | ask | show | jobs
by tuyiown 1495 days ago
Globals are never the good choice. Hidden/ambient dependencies always ends up causing more problems than it solves. Extraordinary lengths are merely passing an parameter through your stack or a tightly controlled context. This requires proper design if you have a lot of things to pass around, it's merely organizing your code dependencies and not hiding under the global carpet.