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 😊 - Наука та технологія
12:48 got me checking my wifi😂😂
True , i taught it was a bug detected in the code 😂
Ah damn hahaha there was a loud car passing by and I forgot to cut out that segment 😄
Am patiently waiting for your rabbitmq video
Coming soon!
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
Yes, it is the @ from Angular! I’m not familiar with Nest.js so can’t tell for sure 😀
Which of these design patterns do you use the most?
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.
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
Hey brow can you teach DDD(domain driven design in typescript)
Good brilliant question thank you bro
Coming next week!
@@SoftwareDeveloperDiaries Along with clean architecture please
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 , بارك الله فيك
Thanks ahahah!
I will make a video on performance in JS which will hopefully cover those!
The video is out 😎