Skip to content

Commit 9f672a3

Browse files
committed
updates
1 parent 2a45514 commit 9f672a3

File tree

12 files changed

+71
-72
lines changed

12 files changed

+71
-72
lines changed

adapter/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
Section | Video Links
66
-|-
7-
Adapter Overview | <a id="udemyVideoLink" href="https://www.udemy.com/course/design-patterns-in-python/learn/lecture/16399566/?referralCode=7493DBBBF97FF2B0D24D" target="_blank" title="Adapter Overview"><img src="/img/udemy_btn_sm.gif" alt="Adapter Overview"/></a>&nbsp;<a id="ytVideoLink" href="https://youtu.be/030ih2rpOhY" target="_blank" title="Adapter Overview"><img src="/img/yt_btn_sm.gif" alt="Adapter Overview"/></a>&nbsp;<a id="skillShareVideoLink" href="https://skl.sh/34SM2Xg" target="_blank" title="Adapter Overview"><img src="/img/skillshare_btn_sm.gif" alt="Adapter Overview"/></a>&nbsp;<a id="sbcodeVideoLink" href="#"><input type="image" src="/img/sbcode_btn_sm.gif" onclick="selectVideoId()"></a>
8-
Adapter Use Case | <a id="udemyVideoLink" href="https://www.udemy.com/course/design-patterns-in-python/learn/lecture/25400220/?referralCode=7493DBBBF97FF2B0D24D" target="_blank" title="Adapter Use Case"><img src="/img/udemy_btn_sm.gif" alt="Adapter Use Case"/></a>&nbsp;<a id="ytVideoLink" href="https://youtu.be/fyws-p4WHuk" target="_blank" title="Adapter Use Case"><img src="/img/yt_btn_sm.gif" alt="Adapter Use Case"/></a>&nbsp;<a id="skillShareVideoLink" href="https://skl.sh/34SM2Xg" target="_blank" title="Adapter Use Case"><img src="/img/skillshare_btn_sm.gif" alt="Adapter Use Case"/></a>&nbsp;<a id="sbcodeVideoLink" href="#"><input type="image" src="/img/sbcode_btn_sm.gif" onclick="selectVideoId()"></a>
9-
Python **isinstance()** Function | <a id="udemyVideoLink" href="https://www.udemy.com/course/design-patterns-in-python/learn/lecture/25401048/?referralCode=7493DBBBF97FF2B0D24D" target="_blank" title="Python isinstance() Function"><img src="/img/udemy_btn_sm.gif" alt="Python isinstance() Function"/></a>&nbsp;<a id="ytVideoLink" href="https://youtu.be/Y6DzwI8xBA8" target="_blank" title="Python isinstance() Function"><img src="/img/yt_btn_sm.gif" alt="Python isinstance() Function"/></a>&nbsp;<a id="skillShareVideoLink" href="https://skl.sh/34SM2Xg" target="_blank" title="Python isinstance() Function"><img src="/img/skillshare_btn_sm.gif" alt="Python isinstance() Function"/></a>&nbsp;<a id="sbcodeVideoLink" href="#"><input type="image" src="/img/sbcode_btn_sm.gif" onclick="selectVideoId()"></a>
10-
Python **time** Module | <a id="udemyVideoLink" href="https://www.udemy.com/course/design-patterns-in-python/learn/lecture/25414958/?referralCode=7493DBBBF97FF2B0D24D" target="_blank" title="Python time Module"><img src="/img/udemy_btn_sm.gif" alt="Python time Module"/></a>&nbsp;<a id="ytVideoLink" href="https://youtu.be/WZTZeGB3o3U" target="_blank" title="Python time Module"><img src="/img/yt_btn_sm.gif" alt="Python time Module"/></a>&nbsp;<a id="skillShareVideoLink" href="https://skl.sh/34SM2Xg" target="_blank" title="Python time Module"><img src="/img/skillshare_btn_sm.gif" alt="Python time Module"/></a>&nbsp;<a id="sbcodeVideoLink" href="#"><input type="image" src="/img/sbcode_btn_sm.gif" onclick="selectVideoId()"></a>
7+
Adapter Overview | <a id="udemyVideoLink" href="https://www.udemy.com/course/design-patterns-in-python/learn/lecture/16399566/?referralCode=7493DBBBF97FF2B0D24D" target="_blank" title="Adapter Overview"><img src="/img/udemy_btn_sm.gif" alt="Adapter Overview"/></a>&nbsp;<a id="ytVideoLink" href="https://youtu.be/030ih2rpOhY" target="_blank" title="Adapter Overview"><img src="/img/yt_btn_sm.gif" alt="Adapter Overview"/></a>&nbsp;<a id="skillShareVideoLink" href="https://skl.sh/34SM2Xg" target="_blank" title="Adapter Overview"><img src="/img/skillshare_btn_sm.gif" alt="Adapter Overview"/></a>
8+
Adapter Use Case | <a id="udemyVideoLink" href="https://www.udemy.com/course/design-patterns-in-python/learn/lecture/25400220/?referralCode=7493DBBBF97FF2B0D24D" target="_blank" title="Adapter Use Case"><img src="/img/udemy_btn_sm.gif" alt="Adapter Use Case"/></a>&nbsp;<a id="ytVideoLink" href="https://youtu.be/fyws-p4WHuk" target="_blank" title="Adapter Use Case"><img src="/img/yt_btn_sm.gif" alt="Adapter Use Case"/></a>&nbsp;<a id="skillShareVideoLink" href="https://skl.sh/34SM2Xg" target="_blank" title="Adapter Use Case"><img src="/img/skillshare_btn_sm.gif" alt="Adapter Use Case"/></a>
9+
Python **isinstance()** Function | <a id="udemyVideoLink" href="https://www.udemy.com/course/design-patterns-in-python/learn/lecture/25401048/?referralCode=7493DBBBF97FF2B0D24D" target="_blank" title="Python isinstance() Function"><img src="/img/udemy_btn_sm.gif" alt="Python isinstance() Function"/></a>&nbsp;<a id="ytVideoLink" href="https://youtu.be/Y6DzwI8xBA8" target="_blank" title="Python isinstance() Function"><img src="/img/yt_btn_sm.gif" alt="Python isinstance() Function"/></a>&nbsp;<a id="skillShareVideoLink" href="https://skl.sh/34SM2Xg" target="_blank" title="Python isinstance() Function"><img src="/img/skillshare_btn_sm.gif" alt="Python isinstance() Function"/></a>
10+
Python **time** Module | <a id="udemyVideoLink" href="https://www.udemy.com/course/design-patterns-in-python/learn/lecture/25414958/?referralCode=7493DBBBF97FF2B0D24D" target="_blank" title="Python time Module"><img src="/img/udemy_btn_sm.gif" alt="Python time Module"/></a>&nbsp;<a id="ytVideoLink" href="https://youtu.be/WZTZeGB3o3U" target="_blank" title="Python time Module"><img src="/img/yt_btn_sm.gif" alt="Python time Module"/></a>&nbsp;<a id="skillShareVideoLink" href="https://skl.sh/34SM2Xg" target="_blank" title="Python time Module"><img src="/img/skillshare_btn_sm.gif" alt="Python time Module"/></a>
1111

1212
## Book
1313

chain_of_responsibility/README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Chain of Responsibility Design Pattern
22

3+
## Videos
4+
5+
Section | Video Links
6+
-|-
7+
Chain of Responsibility | <a id="udemyVideoLink" href="https://www.udemy.com/course/design-patterns-in-python/learn/lecture/16397342/?referralCode=7493DBBBF97FF2B0D24D" target="_blank" title="Chain of Responsibility Overview"><img src="/img/udemy_btn_sm.gif" alt="Chain of Responsibility Overview"/></a>&nbsp;<a id="ytVideoLink" href="https://youtu.be/Ayb6UShWcUU" target="_blank" title="Chain of Responsibility Overview"><img src="/img/yt_btn_sm.gif" alt="Chain of Responsibility Overview"/></a>&nbsp;<a id="skillShareVideoLink" href="https://skl.sh/34SM2Xg" target="_blank" title="Chain of Responsibility Overview"><img src="/img/skillshare_btn_sm.gif" alt="Chain of Responsibility Overview"/></a>
8+
Use Case | <a id="udemyVideoLink" href="https://www.udemy.com/course/design-patterns-in-python/learn/lecture/25567252/?referralCode=7493DBBBF97FF2B0D24D" target="_blank" title="Chain of Responsibility Use Case"><img src="/img/udemy_btn_sm.gif" alt="Chain of Responsibility Use Case"/></a>&nbsp;<a id="ytVideoLink" href="https://youtu.be/BxiAyLGAJqw" target="_blank" title="Chain of Responsibility Use Case"><img src="/img/yt_btn_sm.gif" alt="Chain of Responsibility Use Case"/></a>&nbsp;<a id="skillShareVideoLink" href="https://skl.sh/34SM2Xg" target="_blank" title="Chain of Responsibility Use Case"><img src="/img/skillshare_btn_sm.gif" alt="Chain of Responsibility Use Case"/></a>
9+
Python Floor Division | <a id="udemyVideoLink" href="https://www.udemy.com/course/design-patterns-in-python/learn/lecture/25567266/?referralCode=7493DBBBF97FF2B0D24D" target="_blank" title="Python Floor Division"><img src="/img/udemy_btn_sm.gif" alt="Python Floor Division"/></a>&nbsp;<a id="ytVideoLink" href="https://youtu.be/kR4pYqVpNb0" target="_blank" title="Python Floor Division"><img src="/img/yt_btn_sm.gif" alt="Python Floor Division"/></a>&nbsp;<a id="skillShareVideoLink" href="https://skl.sh/34SM2Xg" target="_blank" title="Python Floor Division"><img src="/img/skillshare_btn_sm.gif" alt="Python Floor Division"/></a>
10+
Accepting User Input | <a id="udemyVideoLink" href="https://www.udemy.com/course/design-patterns-in-python/learn/lecture/25567278/?referralCode=7493DBBBF97FF2B0D24D" target="_blank" title="Accepting User Input"><img src="/img/udemy_btn_sm.gif" alt="Accepting User Input"/></a>&nbsp;<a id="ytVideoLink" href="https://youtu.be/wC2gBf1D1CU" target="_blank" title="Accepting User Input"><img src="/img/yt_btn_sm.gif" alt="Accepting User Input"/></a>&nbsp;<a id="skillShareVideoLink" href="https://skl.sh/34SM2Xg" target="_blank" title="Accepting User Input"><img src="/img/skillshare_btn_sm.gif" alt="Accepting User Input"/></a>
11+
312
## Book
413

514
Cover | Links
@@ -113,13 +122,3 @@ if AMOUNT < 10 or AMOUNT % 10 != 0:
113122
Note that in Python 2.x, use the `raw_input()` command instead of `input()` .
114123

115124
See PEP-3111 : [https://www.python.org/dev/peps/pep-3111/](https://www.python.org/dev/peps/pep-3111/)
116-
117-
## Summary
118-
119-
* The object will propagate through the chain until fully processed.
120-
* The object does not know that successor or how many will process it.
121-
* The next successor in the chain is chosen dynamically at runtime depending on logic from the current successor.
122-
* Successors implement a common interface that makes them work independently of each other, so that they can be used recursively or possibly in a different order.
123-
* A user wizard, or dynamic questionnaire are other common use cases for the chain of responsibility pattern.
124-
* The chain of responsibility and [Composite](/composite) patterns are often used together because of their similar approach to hierarchy and possible re-ordering. The Composites parent/child relationship is set in an object's property by a process outside of the class and can be changed at runtime. While with the Chain of Responsibility, each successor runs a dynamic algorithm internally, to decide which successor is next in line.
125-
* The chain can be fully dynamically created, or it can be set as a default with the possibility of changing at runtime.

command/README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Command Design Pattern
22

3+
## Videos
4+
5+
Section | Video Links
6+
-|-
7+
Command Overview | <a id="udemyVideoLink" href="https://www.udemy.com/course/design-patterns-in-python/learn/lecture/16397092/?referralCode=7493DBBBF97FF2B0D24D" target="_blank" title="Command Overview"><img src="/img/udemy_btn_sm.gif" alt="Command Overview"/></a>&nbsp;<a id="ytVideoLink" href="https://youtu.be/jOxlrGeAKQ4" target="_blank" title="Command Overview"><img src="/img/yt_btn_sm.gif" alt="Command Overview"/></a>&nbsp;<a id="skillShareVideoLink" href="https://skl.sh/34SM2Xg" target="_blank" title="Command Overview"><img src="/img/skillshare_btn_sm.gif" alt="Command Overview"/></a>
8+
Command Use Case | <a id="udemyVideoLink" href="https://www.udemy.com/course/design-patterns-in-python/learn/lecture/25551578/?referralCode=7493DBBBF97FF2B0D24D" target="_blank" title="Command Use Case"><img src="/img/udemy_btn_sm.gif" alt="Command Use Case"/></a>&nbsp;<a id="ytVideoLink" href="https://youtu.be/qDM8ZFcQwZM" target="_blank" title="Command Use Case"><img src="/img/yt_btn_sm.gif" alt="Command Use Case"/></a>&nbsp;<a id="skillShareVideoLink" href="https://skl.sh/34SM2Xg" target="_blank" title="Command Use Case"><img src="/img/skillshare_btn_sm.gif" alt="Command Use Case"/></a>
9+
Single Leading Underscore | <a id="udemyVideoLink" href="https://www.udemy.com/course/design-patterns-in-python/learn/lecture/25551594/?referralCode=7493DBBBF97FF2B0D24D" target="_blank" title="Single Leading Underscore"><img src="/img/udemy_btn_sm.gif" alt="Single Leading Underscore"/></a>&nbsp;<a id="ytVideoLink" href="https://youtu.be/dDIqJI9aTAc" target="_blank" title="Single Leading Underscore"><img src="/img/yt_btn_sm.gif" alt="Single Leading Underscore"/></a>&nbsp;<a id="skillShareVideoLink" href="https://skl.sh/34SM2Xg" target="_blank" title="Single Leading Underscore"><img src="/img/skillshare_btn_sm.gif" alt="Single Leading Underscore"/></a>
10+
311
## Book
412

513
Cover | Links
@@ -104,10 +112,3 @@ Private, in C style languages, means that the variable/field/property is hidden
104112
Python does not have a public/private accessor concept so the variable is not actually private and can still be used outside of the class in other modules.
105113

106114
It is just a useful construct that you will see developers use as a recommendation not to reference this variable directly outside of this class, but use a dedicated method or property instead.
107-
108-
## Summary
109-
110-
* State should not be managed in the Command object itself.
111-
* There can be one or more Invokers which can execute the Command at a later time.
112-
* The Command object is especially useful if you want to UNDO/REDO commands at later time.
113-
* The Command pattern is similar to the [Memento](/memento) pattern in the way that it can also be used for UNDO/REDO purposes. However, the Memento pattern is about recording and replacing the state of an object, whereas the Command pattern executes a predefined command. E.g., Draw, Turn, Resize, Save, etc.

composite/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
Section | Video Links
66
-|-
7-
Composite Overview | <a id="udemyVideoLink" href="https://www.udemy.com/course/design-patterns-in-python/learn/lecture/16511234/?referralCode=7493DBBBF97FF2B0D24D" target="_blank" title="Composite Overview"><img src="/img/udemy_btn_sm.gif" alt="Composite Overview"/></a>&nbsp;<a id="ytVideoLink" href="https://youtu.be/Wihw5oIsh2g" target="_blank" title="Composite Overview"><img src="/img/yt_btn_sm.gif" alt="Composite Overview"/></a>&nbsp;<a id="skillShareVideoLink" href="https://skl.sh/34SM2Xg" target="_blank" title="Composite Overview"><img src="/img/skillshare_btn_sm.gif" alt="Composite Overview"/></a>&nbsp;<a id="sbcodeVideoLink" href="#"><input type="image" src="/img/sbcode_btn_sm.gif" onclick="selectVideoId()"></a>
8-
Composite Use Case | <a id="udemyVideoLink" href="https://www.udemy.com/course/design-patterns-in-python/learn/lecture/25473576/?referralCode=7493DBBBF97FF2B0D24D" target="_blank" title="Composite Use Case"><img src="/img/udemy_btn_sm.gif" alt="Composite Use Case"/></a>&nbsp;<a id="ytVideoLink" href="https://youtu.be/5MjYcxO_TUk" target="_blank" title="Composite Use Case"><img src="/img/yt_btn_sm.gif" alt="Composite Use Case"/></a>&nbsp;<a id="skillShareVideoLink" href="https://skl.sh/34SM2Xg" target="_blank" title="Composite Use Case"><img src="/img/skillshare_btn_sm.gif" alt="Composite Use Case"/></a>&nbsp;<a id="sbcodeVideoLink" href="#"><input type="image" src="/img/sbcode_btn_sm.gif" onclick="selectVideoId()"></a>
9-
Conditional Expressions | <a id="udemyVideoLink" href="https://www.udemy.com/course/design-patterns-in-python/learn/lecture/25473582/?referralCode=7493DBBBF97FF2B0D24D" target="_blank" title="Conditional Expressions"><img src="/img/udemy_btn_sm.gif" alt="Conditional Expressions"/></a>&nbsp;<a id="ytVideoLink" href="https://youtu.be/meX3QlEJI2Q" target="_blank" title="Conditional Expressions"><img src="/img/yt_btn_sm.gif" alt="Conditional Expressions"/></a>&nbsp;<a id="skillShareVideoLink" href="https://skl.sh/34SM2Xg" target="_blank" title="Conditional Expressions"><img src="/img/skillshare_btn_sm.gif" alt="Conditional Expressions"/></a>&nbsp;<a id="sbcodeVideoLink" href="#"><input type="image" src="/img/sbcode_btn_sm.gif" onclick="selectVideoId()"></a>
7+
Composite Overview | <a id="udemyVideoLink" href="https://www.udemy.com/course/design-patterns-in-python/learn/lecture/16511234/?referralCode=7493DBBBF97FF2B0D24D" target="_blank" title="Composite Overview"><img src="/img/udemy_btn_sm.gif" alt="Composite Overview"/></a>&nbsp;<a id="ytVideoLink" href="https://youtu.be/Wihw5oIsh2g" target="_blank" title="Composite Overview"><img src="/img/yt_btn_sm.gif" alt="Composite Overview"/></a>&nbsp;<a id="skillShareVideoLink" href="https://skl.sh/34SM2Xg" target="_blank" title="Composite Overview"><img src="/img/skillshare_btn_sm.gif" alt="Composite Overview"/></a>
8+
Composite Use Case | <a id="udemyVideoLink" href="https://www.udemy.com/course/design-patterns-in-python/learn/lecture/25473576/?referralCode=7493DBBBF97FF2B0D24D" target="_blank" title="Composite Use Case"><img src="/img/udemy_btn_sm.gif" alt="Composite Use Case"/></a>&nbsp;<a id="ytVideoLink" href="https://youtu.be/5MjYcxO_TUk" target="_blank" title="Composite Use Case"><img src="/img/yt_btn_sm.gif" alt="Composite Use Case"/></a>&nbsp;<a id="skillShareVideoLink" href="https://skl.sh/34SM2Xg" target="_blank" title="Composite Use Case"><img src="/img/skillshare_btn_sm.gif" alt="Composite Use Case"/></a>
9+
Conditional Expressions | <a id="udemyVideoLink" href="https://www.udemy.com/course/design-patterns-in-python/learn/lecture/25473582/?referralCode=7493DBBBF97FF2B0D24D" target="_blank" title="Conditional Expressions"><img src="/img/udemy_btn_sm.gif" alt="Conditional Expressions"/></a>&nbsp;<a id="ytVideoLink" href="https://youtu.be/meX3QlEJI2Q" target="_blank" title="Conditional Expressions"><img src="/img/yt_btn_sm.gif" alt="Conditional Expressions"/></a>&nbsp;<a id="skillShareVideoLink" href="https://skl.sh/34SM2Xg" target="_blank" title="Conditional Expressions"><img src="/img/skillshare_btn_sm.gif" alt="Conditional Expressions"/></a>
1010

1111
## Book
1212

0 commit comments

Comments
 (0)