design-patterns-for-humans
design-patterns-for-humans copied to clipboard
Python Examples
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.
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?
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.