Command Use Case : Design Patterns In Python

Command Use Case : Design Patterns In Python

Channel:
Subscribers:
24,900
Published on ● Video Link: https://www.youtube.com/watch?v=qDM8ZFcQwZM



Duration: 3:35
0 views
2


Channel Membership : https://www.youtube.com/channel/UCmUILI2AWt2MSUgPlZwFdOg/join

Documentation : https://sbcode.net/python/command/#example-use-case

This will be a smart light switch.

This light switch will keep a history of each time one of its commands was called.

And it can replay its commands.

A smart light switch could be extended in the future to be called remotely or automated depending on sensors.

(Book) Sometimes you just want to switch off your computer and read from a book. So, all GoF patterns are discussed in my Design Patterns In Python book
https://www.amazon.com/dp/B08XLJ8Z2J : ASIN B08XLJ8Z2J







Tags:
Design Patterns In Python
python design patterns
B08XLJ8Z2J
command
command pattern
undo redo pattern