How does dependency injection differ from just not using global variables? | Hacker News Reader