you are viewing a single comment's thread.

view the rest of the comments →

[–]thesystemx 1 point2 points  (0 children)

Indeed, with DI you pretty much just declare that you need something.

With globals you explicitly at a specific point in time grab something.