I have been reading alot about dependency injection thinking that it may be some really advanced way to program, but I can't see the difference between just avoiding global state, as when there is no global state then you are forced to pass in all dependencies to objects.

Can someone please explain to me as I think I may be missing the point about what dependency injection is?

Edit
Report