I want to say that in flutter projects we use GetIt, and Getx dependency injection packages. I already make my controllers and data classes lazy singleton so is there any need to use these packages?
Please continue to review patterns - factory, repository and so one because there are no videos about design patterns in dart language. It'll be very useful. Thanks!
Correct me if I'm wrong, but isn't that normal object oriented programming? Use pass objects to other objects? For me Dependency Injection is having a Container of objects that get injected into the object you're using then necessary.
The key differentiator here is that with DI you should never be responsible for object construction (calling a class constructor), the DI framework does this for you and calculates a graph of dependent classes that should be provided as a pre-requisite to satisfying an injection request.
that was awesome demystify, thanks
I want to say that in flutter projects we use GetIt, and Getx dependency injection packages. I already make my controllers and data classes lazy singleton so is there any need to use these packages?
Please continue to review patterns - factory, repository and so one because there are no videos about design patterns in dart language. It'll be very useful. Thanks!
Thanks that really helped!! Also, you sound like Michale from Vsauce, pretty cool!
Correct me if I'm wrong, but isn't that normal object oriented programming? Use pass objects to other objects?
For me Dependency Injection is having a Container of objects that get injected into the object you're using then necessary.
The key differentiator here is that with DI you should never be responsible for object construction (calling a class constructor), the DI framework does this for you and calculates a graph of dependent classes that should be provided as a pre-requisite to satisfying an injection request.
woah bloated :D