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 | Comments (0)

Copyright © huwyss

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski