I liked ranking these Design Patterns: Singleton, Module, Adapter, Decorator

Поділитися
Вставка
  • Опубліковано 28 чер 2024
  • Design patterns such as Singleton, Adapter, and Decorator are common patterns extensively used in many programming languages including JavaScript and Node.js. We're gonna learn all about them and try to rank simultaneously.
    ======⚡⚡⚡======
    ☕ Buy me a coffee: www.buymeacoffee.com/software...
    🙌 Become my Patreon and get exclusive perks: / softdevdiaries
    💼 Follow me on LinkedIn and drop me a message if you'd like: / gadirovgs
    💻 Also, let's connect on GitHub: github.com/gusgad
    📚 Resources:
    First video: • I tried ranking Node.j...
    Second video: • I'm trying to rank Des...
    Article: blog.logrocket.com/guide-node...
    Code: github.com/gusgad/youtube-tut...
    Anti-Corruption Layer: • Can an "Anti-Corruptio...
    🕒 Timestamps:
    (0:00) Intro
    (0:18) Singleton pattern
    (6:18) Module pattern
    (9:10) Adapter pattern
    (12:15) Decorator pattern
    And don't forget to subscribe for more videos like this 😊
  • Наука та технологія

КОМЕНТАРІ • 17

  • @callanambulancebutnotforme5702
    @callanambulancebutnotforme5702 13 днів тому +2

    12:48 got me checking my wifi😂😂

    • @gamingwolf3385
      @gamingwolf3385 12 днів тому

      True , i taught it was a bug detected in the code 😂

    • @SoftwareDeveloperDiaries
      @SoftwareDeveloperDiaries  11 днів тому +1

      Ah damn hahaha there was a loud car passing by and I forgot to cut out that segment 😄

  • @kenzo3477
    @kenzo3477 13 днів тому +1

    Am patiently waiting for your rabbitmq video

  • @gamingwolf3385
    @gamingwolf3385 12 днів тому

    This decorator design pattern is it the same used in nestjs or angular with @ ??
    Or maybe in other languages to add more properties to the original object

    • @SoftwareDeveloperDiaries
      @SoftwareDeveloperDiaries  12 днів тому

      Yes, it is the @ from Angular! I’m not familiar with Nest.js so can’t tell for sure 😀

  • @SoftwareDeveloperDiaries
    @SoftwareDeveloperDiaries  13 днів тому

    Which of these design patterns do you use the most?

    • @markoffk
      @markoffk 13 днів тому +1

      I would like to mention, that it depends on what you mean by "use". For example, in modern JS development with React (and all it's helper libs) and nodejs - singletons are everywhere starting from ES modules. But I never had to manually define Singleton.

    • @gamingwolf3385
      @gamingwolf3385 12 днів тому

      I like the builder method , for now i am using nestjs so i am using singeleton and dependency injection by default 😅 , there is also the dependency inversion you didn't explain it yet its also used in nestjs

  • @mohit84604
    @mohit84604 13 днів тому

    Hey brow can you teach DDD(domain driven design in typescript)

  • @gamingwolf3385
    @gamingwolf3385 12 днів тому +1

    Hello thank you for the video , for now no need for the book written by the gang of four
    You are the gang of four 😂😂
    Ok , i want to know something can you go deep in opensource projects maybe we can discuss how they implement this feature , this helper functionn....
    And for performance purposes are functions better or classes , and why typeof CustomClass and typeof Function the two of them return function hhhh crazy js news
    Thank you a lot , بارك الله فيك