Learn about the command pattern, which is a behavioral pattern where operations are wrapped in objects. This allows the client to simply execute the command without having to know about the command's implementation. The command pattern is also useful for implementing other infrastructure related to operations, such as undoing or redoing operations.
Design patterns are important for implementing object-oriented designs and adhering to SOLID principles. Understanding these fundamental patterns helps software developers build clean and maintainable applications.
🕗 Timestamps:
0:00 - Pattern Introduction
0:53 - Demo Introduction
2:04 - Using a Command Interface
3:51 - Implementing Commands
7:21 - Supporting Undo Operations
8:30 - Implementing an UndoCommand
10:23 - Using an UndoCommand Interface
11:54 - Tracking the Command History
16:57 - Summary
📦 Source code: github.com/SingletonSean/desi...
🔁 Full playlist: • Design Patterns
🔗 Property changed snippet (propchange): singletonsean.s3.amazonaws.co...
🎉 Celebrate the channel members: members.seandodson.com
💎 Become a member: / @singletonsean
📝 Check out my blog: seandodson.com
🏆 Donate: www.paypal.com/biz/fund?id=UB...
23 июл 2024