kamranahmedse / design-patterns-for-humans

An ultra-simplified explanation to design patterns
45.43k stars 5.3k forks source link

adding more coding language support - DISCUSSION #122

Open Kully opened 4 years ago

Kully commented 4 years ago

Reading through the issues (enjoying them), I was thinking that it may be more accessible to have the code blocks written in other languages as well, perhaps toggle-able with HTML buttons (Python, C, C++, etc.)

If the goal is to reach the most people and to make this material as accessible as possible, perhaps pseudocode would be the best one-size-fits-all options (I personally love Wikipedia's pseudocode)

Would you be in favour of extending the README to a website where HTML is supported and work to integrate a bunch some more languages to your examples?

fellalli commented 5 months ago

What do you think about this solution?

PHP example ```php // php code goes here ```
Python example ```py # python code goes here ```
C++ example ```cpp // C++ code goes here ```
Kully commented 5 months ago

What do you think about this solution?

I like this. I can probably give more substantive feedback if I see this in the context of a particular example, but I think it would do the job. 👍