Dependency Injection for Future Generations by Pascal Precht at JSConf Budapest 2015

preview_player
Показать описание


Because dependency injection is cool and that it makes life of all us developers a looot easier, we start off this talk by first understanding what dependency injection stands for and why it is such a blessing in disguise...and also because first things first. Once that is clear we can dive deeper into some existing implementations, to get a real feel of how it all works, and finish by looking at how these implementations are used inside the new Angular 2, by embracing the power of TypeScript annotations.
Рекомендации по теме
Комментарии
Автор


One question though: I know, that you already answered this, but how does the Injector Pattern differ from the Factory Pattern? The way I understood it, the task of an injector is creating objects and providing logic for determining which parameters are passed into the constructor. The task of a factory is creating objects and providing logic for determining which parameters are passed into constructors and for determining which subsequent operations are performed on the object.

berndborte
Автор

5:15 what's wrong with that ? Feels weird to test a Car without testing the engine.

SylvainPOLLETVILLARD