GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - FreePhil/pattern_in_python

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
ABSTRACT_FACTORY_TUTORIAL.md
ABSTRACT_FACTORY_TUTORIAL.md
 
 
ADAPTER_TUTORIAL.md
ADAPTER_TUTORIAL.md
 
 
BRIDGE_TUTORIAL.md
BRIDGE_TUTORIAL.md
 
 
BUILDER_TUTORIAL.md
BUILDER_TUTORIAL.md
 
 
CHAIN_OF_RESPONSIBILITY_TUTORIAL.md
CHAIN_OF_RESPONSIBILITY_TUTORIAL.md
 
 
COMMAND_TUTORIAL.md
COMMAND_TUTORIAL.md
 
 
COMPOSITE_TUTORIAL.md
COMPOSITE_TUTORIAL.md
 
 
DECORATOR_TUTORIAL.md
DECORATOR_TUTORIAL.md
 
 
FACADE_TUTORIAL.md
FACADE_TUTORIAL.md
 
 
FACTORY_TUTORIAL.md
FACTORY_TUTORIAL.md
 
 
FLYWEIGHT_TUTORIAL.md
FLYWEIGHT_TUTORIAL.md
 
 
ITERATOR_TUTORIAL.md
ITERATOR_TUTORIAL.md
 
 
MEDIATOR_TUTORIAL.md
MEDIATOR_TUTORIAL.md
 
 
OBSERVER_TUTORIAL.md
OBSERVER_TUTORIAL.md
 
 
README.md
README.md
 
 
SINGLETON_TUTORIAL.md
SINGLETON_TUTORIAL.md
 
 
STATE_TUTORIAL.md
STATE_TUTORIAL.md
 
 
STRATEGY_TUTORIAL.md
STRATEGY_TUTORIAL.md
 
 
abstract_factory_01_basic.py
abstract_factory_01_basic.py
 
 
abstract_factory_02_furniture.py
abstract_factory_02_furniture.py
 
 
abstract_factory_03_database.py
abstract_factory_03_database.py
 
 
abstract_factory_04_theme.py
abstract_factory_04_theme.py
 
 
abstract_factory_05_exercise.py
abstract_factory_05_exercise.py
 
 
adapter_01_basic.py
adapter_01_basic.py
 
 
adapter_02_payment.py
adapter_02_payment.py
 
 
adapter_03_logger.py
adapter_03_logger.py
 
 
adapter_04_class_adapter.py
adapter_04_class_adapter.py
 
 
adapter_05_exercise.py
adapter_05_exercise.py
 
 
bridge_01_basic.py
bridge_01_basic.py
 
 
bridge_02_messaging.py
bridge_02_messaging.py
 
 
bridge_03_shapes.py
bridge_03_shapes.py
 
 
bridge_04_comparison.py
bridge_04_comparison.py
 
 
bridge_05_exercise.py
bridge_05_exercise.py
 
 
builder_01_basic.py
builder_01_basic.py
 
 
builder_02_house.py
builder_02_house.py
 
 
builder_03_query.py
builder_03_query.py
 
 
builder_04_fluent.py
builder_04_fluent.py
 
 
builder_05_exercise.py
builder_05_exercise.py
 
 
chain_of_responsibility_01_basic.py
chain_of_responsibility_01_basic.py
 
 
chain_of_responsibility_02_support.py
chain_of_responsibility_02_support.py
 
 
chain_of_responsibility_03_middleware.py
chain_of_responsibility_03_middleware.py
 
 
chain_of_responsibility_04_advanced.py
chain_of_responsibility_04_advanced.py
 
 
chain_of_responsibility_05_exercise.py
chain_of_responsibility_05_exercise.py
 
 
command_01_basic.py
command_01_basic.py
 
 
command_02_editor.py
command_02_editor.py
 
 
command_03_remote.py
command_03_remote.py
 
 
command_04_transaction.py
command_04_transaction.py
 
 
command_05_exercise.py
command_05_exercise.py
 
 
composite_01_basic.py
composite_01_basic.py
 
 
composite_02_graphics.py
composite_02_graphics.py
 
 
composite_03_organization.py
composite_03_organization.py
 
 
composite_04_menu.py
composite_04_menu.py
 
 
composite_05_exercise.py
composite_05_exercise.py
 
 
decorator_01_basic.py
decorator_01_basic.py
 
 
decorator_02_notifications.py
decorator_02_notifications.py
 
 
decorator_03_text.py
decorator_03_text.py
 
 
decorator_04_streams.py
decorator_04_streams.py
 
 
decorator_05_exercise.py
decorator_05_exercise.py
 
 
facade_01_basic.py
facade_01_basic.py
 
 
facade_02_ecommerce.py
facade_02_ecommerce.py
 
 
facade_03_computer.py
facade_03_computer.py
 
 
facade_04_home_theater.py
facade_04_home_theater.py
 
 
facade_05_exercise.py
facade_05_exercise.py
 
 
factory_01_basic.py
factory_01_basic.py
 
 
factory_02_document.py
factory_02_document.py
 
 
factory_03_ui.py
factory_03_ui.py
 
 
factory_04_serializer.py
factory_04_serializer.py
 
 
factory_05_exercise.py
factory_05_exercise.py
 
 
flyweight_01_basic.py
flyweight_01_basic.py
 
 
flyweight_02_forest.py
flyweight_02_forest.py
 
 
flyweight_03_particles.py
flyweight_03_particles.py
 
 
flyweight_04_text_editor.py
flyweight_04_text_editor.py
 
 
flyweight_05_exercise.py
flyweight_05_exercise.py
 
 
iterator_01_basic.py
iterator_01_basic.py
 
 
iterator_02_collections.py
iterator_02_collections.py
 
 
iterator_03_python.py
iterator_03_python.py
 
 
iterator_04_advanced.py
iterator_04_advanced.py
 
 
iterator_05_exercise.py
iterator_05_exercise.py
 
 
logger.py
logger.py
 
 
mediator_01_basic.py
mediator_01_basic.py
 
 
mediator_02_airport.py
mediator_02_airport.py
 
 
mediator_03_ui.py
mediator_03_ui.py
 
 
mediator_04_chatroom.py
mediator_04_chatroom.py
 
 
mediator_05_exercise.py
mediator_05_exercise.py
 
 
observer_01_basic.py
observer_01_basic.py
 
 
observer_02_stock.py
observer_02_stock.py
 
 
observer_03_event_system.py
observer_03_event_system.py
 
 
observer_04_advanced.py
observer_04_advanced.py
 
 
observer_05_exercise.py
observer_05_exercise.py
 
 
singleton_01_basic.py
singleton_01_basic.py
 
 
singleton_02_logger.py
singleton_02_logger.py
 
 
singleton_03_config.py
singleton_03_config.py
 
 
singleton_04_registry.py
singleton_04_registry.py
 
 
singleton_05_exercise.py
singleton_05_exercise.py
 
 
state_01_basic.py
state_01_basic.py
 
 
state_02_vending.py
state_02_vending.py
 
 
state_03_document.py
state_03_document.py
 
 
state_04_player.py
state_04_player.py
 
 
state_05_exercise.py
state_05_exercise.py
 
 

Repository files navigation

Design Pattern Tutorials

This repository contains tutorials and examples for various design patterns in Python. Below is a list of available tutorials with brief explanations:

Creational Patterns

  • Abstract Factory - Creates families of related objects without specifying their concrete classes.
  • Builder - Constructs complex objects step by step, separating construction from representation.
  • Factory Method - Defines an interface for creating objects but lets subclasses decide which class to instantiate.
  • Singleton - Ensures a class has only one instance and provides a global point of access to it.

Structural Patterns

  • Adapter - Allows objects with incompatible interfaces to collaborate.
  • Bridge - Decouples an abstraction from its implementation so the two can vary independently.
  • Composite - Composes objects into tree structures to represent part-whole hierarchies.
  • Decorator - Attaches new behaviors to objects dynamically by placing them inside wrapper objects.
  • Facade - Provides a simplified interface to a library, a framework, or any other complex set of classes.
  • Flyweight - Lets you fit more objects into the available amount of RAM by sharing common parts of state between multiple objects.

Behavioral Patterns

  • Chain of Responsibility - Passes requests along a chain of handlers allowing each to process or pass it.
  • Command - Encapsulates a request as an object, allowing for parameterization of clients with different requests.
  • Iterator - Provides a way to access the elements of an aggregate object sequentially without exposing its underlying representation.
  • Mediator - Reduces chaotic dependencies between objects by restricting direct communications between them.
  • Observer - Defines a subscription mechanism to notify multiple objects about any events that happen to the object they are observing.
  • State - Allows an object to alter its behavior when its internal state changes.
  • Strategy - Defines a family of algorithms, encapsulates each one, and makes them interchangeable.

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.