Dart for Intermediates: Dependency Injection

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ม.ค. 2025

ความคิดเห็น • 7

  • @armagangok5257
    @armagangok5257 2 ปีที่แล้ว

    that was awesome demystify, thanks

  • @armagangok5257
    @armagangok5257 2 ปีที่แล้ว

    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?

  • @IvanDubovenko
    @IvanDubovenko 5 ปีที่แล้ว +1

    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!

  • @easypickings6114
    @easypickings6114 ปีที่แล้ว

    Thanks that really helped!! Also, you sound like Michale from Vsauce, pretty cool!

  • @MAtloi
    @MAtloi 7 ปีที่แล้ว +1

    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.

    • @Depiglio_
      @Depiglio_ 7 ปีที่แล้ว +1

      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.

  • @Nackenschelle
    @Nackenschelle 2 ปีที่แล้ว

    woah bloated :D