Command Design Pattern (C#)
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
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.
Cheers
Awesome explanation. Very easy to understand since I was struggling to understand Design patterns from books.
Glad you found it useful
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.
Cheers
@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
....
}
Thank you!
Thanks for watching
great stuff as always
Thank you )
Awesome video
Cheers
It's quite familiar to Xamarin developers, who use MVVM. đ
A lot of patterns are imbedded in to frameworks)
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.
CZcams and google
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.
Think of something to build and then use the internet
đđœ
)
Design patterns have become pretty boring(
They are good to know if you are actually implementing them, just knowing them isnât really thrilling))