This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| Created on Dec 31, 2018 | |
| @author: Erik Pohl | |
| ''' | |
| # make two lists | |
| print("make two lists") | |
| y = [1,1,1,1,1,2,2,2,2,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5] | |
| z = [5,5,5,5,5,6,6,6,6,6,7,7,7,7,8,8,8,8,8,9,9,9,9,9,10,10,10,10,10] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| Created on Dec 11, 2018 | |
| @author: Erik Pohl | |
| ''' | |
| ''' | |
| cake := frosting | layer | filling | |
| layer := strawberry cake | chocolate cake | vanilla cake | |
| frosting := coconut icing | cream cheese icing | fudge icing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| Created on Dec 11, 2018 | |
| @author: Erik Pohl | |
| ''' | |
| """ | |
| With the flyweight, a factor method uses a shared pool to create large numbers of fine-grained objects | |
| efficiently in memory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| Created on Dec 10, 2018 | |
| @author: Erik Pohl | |
| ''' | |
| """ | |
| Define an object creation interface | |
| , and let subclasses decide |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| Created on Dec 11, 2018 | |
| @author: Erik Pohl | |
| ''' | |
| """ | |
| The composite creates a recursive tree structure of | |
| leaf and composite components. | |
| Each type of component is treated uniformly |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| Created on Dec 11, 2018 | |
| @author: Erik Pohl | |
| ''' | |
| """ | |
| Adapter changes the interface of a class into the interface a client expects. | |
| Adapter adapts the interface so that classes can work together which otherwise |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| Created on Dec 11, 2018 | |
| @author: Erik Pohl | |
| ''' | |
| """ | |
| Create algorithm classes using encapsulation and make their handles | |
| interchangeable. The Strategy Design Pattern lets the client class | |
| -- the Context -- leverage a common handle to address |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| Created on Dec 10, 2018 | |
| @author: Erik Pohl | |
| ''' | |
| """ | |
| The subject object has a one to many dependency on the observers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| Created on Dec 10, 2018 | |
| @author: Erik Pohl | |
| ''' | |
| """ | |
| An abstract class represents an action to perform on another class. | |
| The visitor class visits the element and the behavior changes | |
| of the element class without changing the class itself. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| Created on Dec 10, 2018 | |
| @author: Erik Pohl | |
| ''' | |
| """ | |
| The template design pattern defines a generalized | |
| algorithm, asking the subclasses to fill in some |
NewerOlder