Friday, 15 February 2013

Python: Case for `dependency injection`? -



Python: Case for `dependency injection`? -

at moment refactoring programme wrote while ago. there bunch of classes, decoupling easy. tried grouping of functions well, set them in class , create staticmethod's out of them.

often utilize instance of 1 objects. have own namespace , need pass instance explicitly function, across multiple modules. question is: classic case dependency injection?

what alternative way create variables global in scope of package?

python dependency-injection module

No comments:

Post a Comment