learn-python icon indicating copy to clipboard operation
learn-python copied to clipboard

Design Patterns concepts implementations in Python

Open rhoitjadhav opened this issue 4 years ago • 3 comments

It would be very nice if you could implement design patterns in Python. I hope you are aware of these concepts.

For more info please navigate to this link

rhoitjadhav avatar May 28 '21 13:05 rhoitjadhav

I agreed. People often discard python as an OOP language and use it only for its scripting advantages. Nonetheless, it it as powerful as any other OOP typed language.

Here, I started a project implementing abstract factory. It needs improvement, but it's a start.

https://github.com/evaldez89/banks-transaction-email-reader

evaldez89 avatar May 28 '21 14:05 evaldez89

@rhoitjadhav @evaldez89 I agree, too. Maybe, let's start by building up a repo folder structure and then fill it over time with good examples. But imho, structural and behavioral patterns should be covered at least...

ghost avatar Nov 07 '21 15:11 ghost

@rhoitjadhav @evaldez89 @giugiozza @ANONYJNOKA @sebaslucio-actuary @trekhleb I added a first structural frame (directory backbone) with some first examples that I found really useful. Since many design principles are already partially or fully integrated into today's core-python, there are not THAT many design patterns out there. Nevertheless the first examples should give a nice overview and make devs appreciate python even more.
Feel free to add more example classes/functions to the specific directories/modules.

ghost avatar Nov 07 '21 18:11 ghost