Demystifying Dependency Injection: Angular vs NestJS - Kamil Mysliwiec | NG-DE 2019

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • Dependency Injection framework is a core and inherent feature of both Nest and Angular. DI simplifies creating scalable, testable, and maintainable applications by giving us flexible and efficient abstractions. However, did we ever think how this mechanism works underneath? In this talk, we’ll compare how Nest and Angular DI systems differ from each other as well as dive into the basics of the metadata reflection API in TypeScript.
    Kamil Mysliwiec: ng-de.org/speakers/kamil-mysl...
    Follow us on twitter / ngdeconf
    Official Website: ng-de.org/
    Video Production: medienkompetent.com

Komentáře • 25

  • @MrAaronBlues
    @MrAaronBlues Před 2 lety +11

    It's been the 50th time I'm listening to this video, every time I understand 1% better DI in Nest but I'm far from understanding it well yet, 50% actually :)

  • @gustavcoetzee5018
    @gustavcoetzee5018 Před rokem +1

    working with nest for more than a year now, what a cool talk, I can feel my heart beating faster as he explains it

  • @Holdino_
    @Holdino_ Před 4 lety +17

    I'm in love with NestJS!

  • @avimehenwal
    @avimehenwal Před rokem

    I am build a new product using nestjs .... This video is god-tier explainer on how nestjs DI works. Learnt a lot
    Thankyou so much for sharing

  • @MojoRisingX
    @MojoRisingX Před 4 lety +6

    Great talk! Love NestJS!

  • @user-fw7ho5pj2i
    @user-fw7ho5pj2i Před rokem

    Watched this to study nestjs fundamentals. Crazy experience

  • @muhammadtanveer286
    @muhammadtanveer286 Před 3 lety +1

    I'm in love with NestJS!,its amazing .

  • @giorgimerabishvili8194
    @giorgimerabishvili8194 Před 3 lety +2

    Wow, this dude is a legend!

  • @8eck
    @8eck Před 3 lety +2

    Whoa look at the back of his notebook, this guy sure loves stickers :D

  • @franciscokloganb
    @franciscokloganb Před 2 lety +1

    I like his glasses. Moreover, I must say I love the principles of Nest.js on the backend, but honestly, I think Angular is worse than React. Vue makes a good compromise between freedom and code predictability. :)

  • @MarcoSync
    @MarcoSync Před 4 lety +3

    NestJS Rules! s2

  • @TiagoDark
    @TiagoDark Před 4 lety +2

    NestJS ftw

  • @shy-soonyubing
    @shy-soonyubing Před rokem

    I'd like to know why nest.js strictly applies to Isolation of modules

  • @name1483
    @name1483 Před 2 lety

    Those shorts caught me off guard

  • @nikosc
    @nikosc Před 4 lety +8

    To save some time for some people, Nest.js's DI framework does not offer a solution for Interfaces and Generics to be used as providers

    • @finally_code
      @finally_code Před 4 lety +1

      why would you want that? You can use normal inheritance for an Interface and a generic type declaration is just a type construct that can't be passed around outside of a type definition.

    • @sociocritical
      @sociocritical Před 4 lety

      @@finally_code Yes I also dont really see a reason for that. Even if you wanted to switch between providers which implement a specific interface after init you could just assign the initially injected provider to the interface in the constructor. If you want to choose before init you can just use a custom provider factory, which doesn't need type information due to the custom token.

    • @renatosanhueza890
      @renatosanhueza890 Před rokem

      thanks for the warning. I am dying looking for a solution for this crap.

  • @jhonysou
    @jhonysou Před 3 lety

    #LoveNestJS

  • @boot-strapper
    @boot-strapper Před 4 lety +8

    this guy's glasses detract from his credibility

  • @ricko13
    @ricko13 Před 2 lety +1

    React fans hating Angular but loving Nestjs... I'm like WTF ???