I'm trying to rank Design Patterns (again): Chain of Responsibility, IIFE, Factory, DP

Ғылым және технология

Design patterns such as Factory, Dependency Injection, and IIFE 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:
Article: blog.logrocket.com/guide-node...
Code: github.com/gusgad/youtube-tut...
🕒 Timestamps:
(0:00) Intro
(0:30) Chain of Responsibility pattern
(5:23) IIFE
(8:46) Factory pattern
(12:26) Dependency Injection
And don't forget to subscribe for more videos like this 😊

Пікірлер: 14

  • @SoftwareDeveloperDiaries
    @SoftwareDeveloperDiaries26 күн бұрын

    Forgot to mention: Dependency Injection also facilitates unit testing and mocking 😉

  • @lee2k137
    @lee2k13728 күн бұрын

    With the DI pattern, "'we can cook" with the NestJS framework. This is my favorite framework to work with on the NodeJS side.

  • @tristheflash6928
    @tristheflash692813 күн бұрын

    im with u bro

  • @NootYet-ck8rs
    @NootYet-ck8rs28 күн бұрын

    Do you recommend any resources about architecture or microservices (especially in ts/node environment)?

  • @SoftwareDeveloperDiaries

    @SoftwareDeveloperDiaries

    26 күн бұрын

    The more you learn about system design the more you'll learn about architectures in my opinion. Here are some useful links for you: github.com/karanpratapsingh/system-design learn.microsoft.com/en-us/azure/architecture/guide/ microservices.io/

  • @achrefnabil2463
    @achrefnabil246328 күн бұрын

    Can you make a DDD clean architecture cqrs event sourcing node js course

  • @SoftwareDeveloperDiaries

    @SoftwareDeveloperDiaries

    26 күн бұрын

    Probably not a course but I can try making a free KZread video

  • @wishmeheaven
    @wishmeheaven26 күн бұрын

    Call me crazy but when a content provider is referring to another video (whether it happens in the first 10 seconds, at the video title itself, neither of those, or BOTH!), I can respect the fact that s/he also put a minimum effort into the kind gesture of sharing a link to this video.

  • @SoftwareDeveloperDiaries

    @SoftwareDeveloperDiaries

    26 күн бұрын

    That’s a task for the viewer, maybe they’ll stumble upon something else while searching for that video 😉

  • @wishmeheaven

    @wishmeheaven

    25 күн бұрын

    ​@@SoftwareDeveloperDiaries that is what I thought of as your motivation. I didn't think it was made out of evil. Yet, giving your viewers the credit that they will search the video on their own but not giving them the credit to simply appreciate the small things like linking to another video is questionable. Time is the most valuable source in this existence. Now try to understand how annoying it feels to search for "part1" when I'm not even sure it was included in the title of the first video, which considering your response, if it's true - it is almost rude, expecting your viewers to invest their time, looking for a first part without titling it as such And I think that it is already clear by now, but if it wasn't: take me as an example for a viewer, and ask yourself what you really achieved: I came here to watch your video, I immediately stopped and looked for the first part along with the feeling that this is not so kind of you "enforcing" me to do so, I gave up when couldn't track down a title with "p.1" or anything similar, I came back here to invest the most value resource in this existence by sharing you how frustrating was this experience, and in the end I didn't even get to see any of those videos. So... Your approach might work. It might even make you new subscribers. But due to the fact that the description of the video already contains links, it doesn't seem so kind preferring people to go through what I have been through only because you're not giving them enough credit that if they will appreciate your content - they will find the way to consume more of it by nature... Just because it's good... And just because it's you. In conclusion, you had 2 options: 1. Making a kind gesture of adding a link to another video, and respecting people's time by providing them the optimal conditions to watch both videos. 2. Intentionally skipping the gesture of providing a link, letting people invest their time by looking for the 1st part, and ignore the fact that they are having a frustrating experience by doing so while they end up watching neither of those videos. Here's a tip to life: If you have 2 options and one of those options "requires" from you to be kind, always prefer this option. Good luck.

  • @wishmeheaven

    @wishmeheaven

    24 күн бұрын

    ​​@@SoftwareDeveloperDiariesthat is what I thought of as your motivation. I didn't think it was made out of evil. Yet, giving your viewers the credit that they will search the video on their own but not giving them the credit to simply appreciate the small things like linking to another video is questionable. Time is the most valuable resource in this existence. Now try to understand how annoying it feels to search for "part1" when I'm not even sure it was included in the title of the first video, which considering your response, if it's true - it is almost rude, expecting your viewers to invest their time, looking for a first part without titling it as such And I think that it is already clear by now, but if it wasn't: take me as an example for a viewer, and ask yourself what you really achieved: I came here to watch your video, I immediately stopped and looked for the first part along with the feeling that this is not so kind of you "enforcing" me to do so, I gave up when couldn't track down a title with "p.1" or anything similar, I came back here to invest the most value resource in this existence by sharing you how frustrating was this experience, and in the end I didn't even get to see any of those videos. So... Your approach might work. It might even make you new subscribers. But due to the fact that the description of the video already contains links, it doesn't seem so kind preferring people to go through what I have been through only because you're not giving them enough credit that if they will appreciate your content - they will find the way to consume more of it by nature... Just because it's good... And just because it's you. In conclusion, you had 2 options: 1. Making a kind gesture of adding a link to another video, and respecting people's time by providing them the optimal conditions to watch both videos. 2. Intentionally skipping the gesture of providing a link, letting people invest their time by looking for the 1st part, and ignore the fact that they are having a frustrating experience by doing so while they end up watching neither of those videos. Here's a tip to life: If you have 2 options and one of those options "requires" from you to be kind, always prefer this option. Good luck.

  • @wishmeheaven

    @wishmeheaven

    24 күн бұрын

    That is what I thought of as your motivation. I didn't think it was made out of evil. Yet, giving your viewers the credit that they will search the video on their own but not giving them the credit to simply appreciate the small things like linking to another video is questionable. Time is the most valuable resource in life. Now try to understand how annoying it feels to search for "part1" when I'm not even sure it was included in the title of the first video, which considering your response, if it's true - it is almost rude, expecting your viewers to invest their time, looking for a first part without titling it as such And I think that it is already clear by now, but if it wasn't: take me as an example for a viewer, and ask yourself what you really achieved: I came here to watch your video, I immediately stopped and looked for the first part along with the feeling that this is not so kind of you "enforcing" me to do so, I gave up when couldn't track down a title with "p.1" or anything similar, I came back here to invest the most value resource in this existence by sharing you how frustrating was this experience, and in the end I didn't even get to see any of those videos. So... Your approach might work. It might even make you new subscribers. But due to the fact that the description of the video already contains links, it doesn't seem so kind preferring people to go through what I have been through only because you're not giving them enough credit that if they will appreciate your content - they will find the way to consume more of it by nature... Just because it's good... And just because it's you. In conclusion, you had 2 options: 1. Making a kind gesture of adding a link to another video, and respecting people's time by providing them the optimal conditions to watch both videos. 2. Intentionally skipping the gesture of providing a link, letting people invest their time by looking for the 1st part, and ignore the fact that they are having a frustrating experience by doing so while they end up watching neither of those videos. Here's a tip to life: If you have 2 options and one of those options "requires" from you to be kind, always prefer this option. Good luck.

  • @SoftwareDeveloperDiaries

    @SoftwareDeveloperDiaries

    24 күн бұрын

    @@wishmeheaven Dude. Righting this comment probably took you 10x more time than searching for the video 😄I think you took it waaay to seriously than you should've. Nevertheless, I agree with all your points and appreciate your input. I might reconsider the current approach.

Келесі