Geeks With Blogs
Swiss Coder .net and stuff... dependency injection
Clean code talks by Misko Hevery - Part 4: Global State and Singletons

Global state (and singletons) is a big problem for testing because the global state cannot be controlled by the tests.

Dependency injection enforces the order of initialization at compile time. No magic behind the scene, that singletons get initialized and method talk to each other without the programmer knowing it.

Posted On Wednesday, July 17, 2013 9:36 PM

Copyright © huwyss | Powered by: