design-patterns-for-humans icon indicating copy to clipboard operation
design-patterns-for-humans copied to clipboard

Python Examples

Open EMChamp opened this issue 5 years ago • 2 comments

Added a separate folder with Python examples.

Tried to stay true to the Pythonic way when there wasn't a direct 1 to 1 mapping (protected/private variables, duck-typing) to the concepts from PHP. Also included separate files for the different types of Design Patterns.

EMChamp avatar Jul 21 '18 21:07 EMChamp

Hi @kamranahmedse and @EMChamp, I like these python examples too. Is this a preferred way how examples in different programming languages could be added or do you want to apply a bit different approach which would avoid repeating of pattern explanation text in Readme file?

zruzicka avatar Jul 27 '18 20:07 zruzicka

Is this a preferred way how examples in different programming languages could be added or do you want to apply a bit different approach which would avoid repeating of pattern explanation text in Readme file?

Just noticed you guys already are in the process of adding python examples. Nice!

I was suggesting in an issue I just posted (gonna take down cause duplicate) that what if the post was put into a webpage with HTML support.

This way, we could create a toggle button to swap between coding languages and sub-in different codeBlocks, keeping the explanations in tact.

Kully avatar Apr 23 '20 16:04 Kully