Dependency Injection: Theory and Practice
summary
An overview of dependency injection theory and practical usage for frontend development, with examples and workshop materials. Covers concepts, patterns and implementation techniques for DI in JavaScript/TypeScript, using the repository and slides as hands-on resources.
AI-written summary · about
chapters (19)
- 0:00Introduction to DI
- 1:09Loose coupling
- 3:57Abstractions and interfaces
- 5:20First DI example
- 10:34Environment awareness problem
- 13:15Testing issues
- 18:07Constructor injection
- 19:12Stable vs unstable dependencies
- 20:35Property injection
- 23:52Method injection
- 25:39Context injection
- 29:49Service Locator vs Context
- 35:38Inversion of Control
- 37:51DI containers
- 40:24Lifecycle management
- 41:30Inversify example
- 53:08DI in NestJS
- 1:01:55Swapping implementations in NestJS
- 1:11:16Testing in NestJS
related talks
33mDI: DIY
34mFlip the Script: Mastering Dependency Inversion in JS/TS Mobile Apps
57mThe 7 Deadly Sins of Dependency Injection
49mFrom Frameworks to Superframeworks
01h 00mHow to Use Dependency Injection to Write Maintainable Software
33mDeconstructing the Frontend: From Theory to Practice
21mThe many meanings of Inversion of Control (IoC) in JavaScript
32mDaedalus
