ผลต่างระหว่างรุ่นของ "Prg2/design patterns 2"
ไปยังการนำทาง
ไปยังการค้นหา
Jittat (คุย | มีส่วนร่วม) |
Jittat (คุย | มีส่วนร่วม) |
||
(ไม่แสดง 1 รุ่นระหว่างกลางโดยผู้ใช้คนเดียวกัน) | |||
แถว 8: | แถว 8: | ||
* Patterns covered this week | * Patterns covered this week | ||
** Creational patterns | ** Creational patterns | ||
− | *** Factory Method [https://en.wikipedia.org/wiki/Factory_method_pattern wikipedia], [https://refactoring.guru/design-patterns/factory-method refactoring guru] | + | *** Factory Method: [https://en.wikipedia.org/wiki/Factory_method_pattern wikipedia], [https://refactoring.guru/design-patterns/factory-method refactoring guru] |
− | *** Abstract Factory [https://en.wikipedia.org/wiki/Abstract_factory_pattern wikipedia], [ refactoring guru] | + | *** Abstract Factory: [https://en.wikipedia.org/wiki/Abstract_factory_pattern wikipedia], [https://refactoring.guru/design-patterns/abstract-factory refactoring guru] |
** Structural patterns | ** Structural patterns | ||
− | *** Bridge [https://en.wikipedia.org/wiki/Bridge_pattern wikipedia], [ refactoring guru] | + | *** Bridge: [https://en.wikipedia.org/wiki/Bridge_pattern wikipedia], [https://refactoring.guru/design-patterns/bridge refactoring guru] |
− | *** Adapter [https://en.wikipedia.org/wiki/Adapter_pattern wikipedia], [ refactoring guru] | + | *** Adapter: [https://en.wikipedia.org/wiki/Adapter_pattern wikipedia], [https://refactoring.guru/design-patterns/adapter refactoring guru] |
− | *** Facade [https://en.wikipedia.org/wiki/Facade_pattern wikipedia], [ refactoring guru] | + | *** Facade: [https://en.wikipedia.org/wiki/Facade_pattern wikipedia], [https://refactoring.guru/design-patterns/facade refactoring guru] |
− | *** Composite [https://en.wikipedia.org/wiki/Composite_pattern wikipedia], [ refactoring guru] | + | *** Composite: [https://en.wikipedia.org/wiki/Composite_pattern wikipedia], [https://refactoring.guru/design-patterns/composite refactoring guru] |
− | *** Decorator [https://en.wikipedia.org/wiki/Decorator_pattern wikipedia], [ refactoring guru] | + | *** Decorator: [https://en.wikipedia.org/wiki/Decorator_pattern wikipedia], [https://refactoring.guru/design-patterns/decorator refactoring guru] |
** Behavioral patterns | ** Behavioral patterns | ||
− | *** Template Method [https://en.wikipedia.org/wiki/Template_method_pattern wikipedia], [ refactoring guru] | + | *** Template Method: [https://en.wikipedia.org/wiki/Template_method_pattern wikipedia], [https://refactoring.guru/design-patterns/template-method refactoring guru] |
− | *** Strategy [https://en.wikipedia.org/wiki/Strategy_pattern wikipedia], [ refactoring guru] | + | *** Strategy: [https://en.wikipedia.org/wiki/Strategy_pattern wikipedia], [https://refactoring.guru/design-patterns/strategy refactoring guru] |
− | *** Chain of Responsibility [https://en.wikipedia.org/wiki/Chain-of-responsibility_pattern wikipedia], [ refactoring guru] | + | *** Chain of Responsibility: [https://en.wikipedia.org/wiki/Chain-of-responsibility_pattern wikipedia], [https://refactoring.guru/design-patterns/chain-of-responsibility refactoring guru] |
− | *** Visitor [https://en.wikipedia.org/wiki/Visitor_pattern wikipedia], [ refactoring guru] | + | *** <del>Visitor: [https://en.wikipedia.org/wiki/Visitor_pattern wikipedia], [https://refactoring.guru/design-patterns/visitor refactoring guru]</del> |
+ | **** Visitor pattern is used mostly in static type languages. It is very unpopular in Python as it does not add much values and it is fairly complex to implement. | ||
== Clips == | == Clips == |
รุ่นแก้ไขปัจจุบันเมื่อ 01:48, 23 มีนาคม 2564
- This is part of Programming 2 2563
Basic information
- Patterns covered this week
- Creational patterns
- Factory Method: wikipedia, refactoring guru
- Abstract Factory: wikipedia, refactoring guru
- Structural patterns
- Bridge: wikipedia, refactoring guru
- Adapter: wikipedia, refactoring guru
- Facade: wikipedia, refactoring guru
- Composite: wikipedia, refactoring guru
- Decorator: wikipedia, refactoring guru
- Behavioral patterns
- Template Method: wikipedia, refactoring guru
- Strategy: wikipedia, refactoring guru
- Chain of Responsibility: wikipedia, refactoring guru
Visitor: wikipedia, refactoring guru- Visitor pattern is used mostly in static type languages. It is very unpopular in Python as it does not add much values and it is fairly complex to implement.
- Creational patterns