Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

design_patterns

Design Patterns

Description

This project contains implementations of various design patterns in Python. Design patterns are reusable solutions to common problems encountered in software development.

Prerequisites

  • Python 3.x
  • An IDE or text editor (e.g., PyCharm)

Installation

  1. Clone this repository:
    git clone git@github.com:DPW2005/design_patterns.git
    cd design_patterns
  2. Set up a virtual environment:
    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate

Usage

  1. Browse the different files to see the design pattern implementations.
  2. Run a specific file to test a pattern:
    python src/test_menu.py
    python src/run_test_menu_runner.py

Project Structure

  • creational/: Contains creational patterns (e.g., Singleton, Factory).
  • structural/: Contains structural patterns (e.g., Adapter, Decorator).
  • behavioral/: Contains behavioral patterns (e.g., Observer, Strategy).

Contribution

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a branch for your feature:
    git checkout -b new-feature
  3. Make your changes and submit a pull request.

About

Devoir sur les design Pattern donne par Pr KOUAMOU Georges à l'endroit de ses étudiants de 5GI

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages