Dependency Injection Part 2: The Container

  Рет қаралды 2,192

Bran van der Meer

Bran van der Meer

Күн бұрын

Пікірлер: 10
@dimapolo6313
@dimapolo6313 21 күн бұрын
Thanks mate , you did it great!
@arzukirectepe9426
@arzukirectepe9426 3 ай бұрын
thank you bran. this is exactly what i was looking for.
@tmbarral664
@tmbarral664 Жыл бұрын
pretty neat ;) Thx a lot.
@lpanebr
@lpanebr 9 ай бұрын
Good explanation and good examples. While explaining the container concept to manage the DIs it looks very similar to the idea of using an autoloader that lets us just call a class without importing it. Are they the same or the autoloader is just another thing that makes making a DI container easier?
@adiadiadi
@adiadiadi 10 ай бұрын
The examples were simple to follow. Thank you, sir. Two questions: 1. Can you recommend some resources to further my journey in DI, specifically in the context of JavaScript / TypeScript? 2. Is there a DI solution that resolves all the dependencies during the build process and generates static import/require statements in the build output for each file? I ask this because if the DI container resolves dependencies dynamically at runtime, then won't we lose the ability to tree-shake unused code?
@branvandermeer
@branvandermeer 10 ай бұрын
@adiadiadi: I recommend NestJS as a nice DI/IoC implementation to play with and learn more about. As for your second question: I don't know of any such compile step, afaik all DI is resolved at runtime.
@adiadiadi
@adiadiadi 10 ай бұрын
@@branvandermeer thanks! will check out Nest
@patrick_kabwe
@patrick_kabwe Жыл бұрын
i love this. Thank you Bran
@gyanaranjan6526
@gyanaranjan6526 11 ай бұрын
Thanks a lot
Inversion of Control, simplified
10:22
Bran van der Meer
Рет қаралды 4,7 М.
Driver/Navigator style of Pair Programming
15:17
Bran van der Meer
Рет қаралды 3,3 М.
Пришёл к другу на ночёвку 😂
01:00
Cadrol&Fatich
Рет қаралды 11 МЛН
Офицер, я всё объясню
01:00
История одного вокалиста
Рет қаралды 4,5 МЛН
escape in roblox in real life
00:13
Kan Andrey
Рет қаралды 93 МЛН
БЕЛКА СЬЕЛА КОТЕНКА?#cat
00:13
Лайки Like
Рет қаралды 2,6 МЛН
Dependency Injection простыми словами
18:17
devschacht
Рет қаралды 86 М.
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 826 М.
Demystifying Dependency Injection Containers by Kai Sassnowski
26:46
Dependency Injection | Prime Reacts
28:34
ThePrimeTime
Рет қаралды 332 М.
3 Simple Hacks to Stay Up-to-date as a Developer
7:32
Bran van der Meer
Рет қаралды 1 М.
Dependency Injection & Inversion of Control
11:00
Ryan Schachte
Рет қаралды 197 М.
Mastering Dependency Injection In Golang
14:29
Anthony GG
Рет қаралды 49 М.
Пришёл к другу на ночёвку 😂
01:00
Cadrol&Fatich
Рет қаралды 11 МЛН