Command Design Pattern (C#)

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 2. 05. 2021
  • The command design pattern explained with examples in code.
    Patreon đŸ€ / raw_coding
    Courses 📚 learning.raw-coding.dev
    Shop 🛒 shop.raw-coding.dev
    Discord 💬 / discord
    Twitter 📣 / anton_t0shik
    Twitch đŸŽ„ / raw_coding
    Playlist: ‱ c# design patterns
    Source: github.com/raw-coding-youtube...
    #csharp #command #designpatterns

Komentáƙe • 24

  • @mybusinessnotyours2051
    @mybusinessnotyours2051 Pƙed 2 lety +4

    Just found your channel and your tutorials are great!
    Love how you lay everything out clear and concise,
    but yet you spend the time to explain the concepts
    very well with examples.

  • @niranjannt637
    @niranjannt637 Pƙed 2 lety +2

    Awesome explanation. Very easy to understand since I was struggling to understand Design patterns from books.

  • @danielhadad4911
    @danielhadad4911 Pƙed 2 lety +2

    Man, I love this kind of content. I watched this video a while ago and had been itching to implement this pattern. Thanks for making this kind of content and of such a high quality.

  • @khadimali9755
    @khadimali9755 Pƙed 23 dny

    @raw coding - in your example you added the command object in the button object and that makes sense. However, I saw one tutorial video where the guy did vice versa, i.e. added the device to the command. Do you think it is a good design in any scenario? Sample code below:
    public class TurnOnCommand : ICommand
    {
    Device device;
    public TurnOnCommand(Device device)
    {
    this.device = device;
    }
    // execute method
    ....
    }

  • @soumyaripan5131
    @soumyaripan5131 Pƙed 2 lety +1

    Thank you!

  • @nikosevangelopoulos3605
    @nikosevangelopoulos3605 Pƙed 3 lety +1

    great stuff as always

  • @emmanueladebiyi2109
    @emmanueladebiyi2109 Pƙed 2 lety +1

    Awesome video

  • @kristofszabo666
    @kristofszabo666 Pƙed 3 lety +1

    It's quite familiar to Xamarin developers, who use MVVM. 😀

    • @RawCoding
      @RawCoding  Pƙed 3 lety +1

      A lot of patterns are imbedded in to frameworks)

  • @JanKowalski-ry9mv
    @JanKowalski-ry9mv Pƙed 3 lety +1

    What C# book do you recommend? I am beginner I know basic programming some OOP. I would like to learn ASP NET core and Azure.

    • @AristotleUcab
      @AristotleUcab Pƙed 3 lety +3

      CZcams and google

    • @haribalachander
      @haribalachander Pƙed 3 lety +1

      CZcams or online courses to get you started on using the tools for development. Starting with Books very early on is not going to help much.

    • @RawCoding
      @RawCoding  Pƙed 3 lety +1

      Think of something to build and then use the internet

  • @clearlyunwell
    @clearlyunwell Pƙed 3 lety +1

    đŸ‘đŸœ

  • @oleksandrdidenko1872
    @oleksandrdidenko1872 Pƙed 3 lety +1

    Design patterns have become pretty boring(

    • @RawCoding
      @RawCoding  Pƙed 3 lety +2

      They are good to know if you are actually implementing them, just knowing them isn’t really thrilling))