basarat / typescript-book

:books: The definitive guide to TypeScript and possibly the best TypeScript book :book:. Free and Open Source 🌹
https://basarat.gitbook.io/typescript/
Other
20.58k stars 2.52k forks source link

TypeScript Design Patterns #249

Open stherrienaspnet opened 7 years ago

stherrienaspnet commented 7 years ago

Hello Basarat, I would first like to thank you for your generous contribution by your book about TypepScript. Since you are my current reference when it comes to the TypeScript programming language, I would have liked to have your comments about the implementation of the different design patterns in TypeScript. Toromark has greatly contributed to this implementation on its website https://github.com/torokmark/design_patterns_in_typescript. But since I read your book I have already seen some improvements to make. Your valuable advice or requests for changes would be welcome. I created a toromark fork for you to contribute. Https://github.com/stherrienaspnet/design_patterns_in_typescript

You have already greatly contributed by your book! Another idea could be to add a section in your book about the 23 GoF design patterns in TypeScript, this should interest many people.

basarat commented 7 years ago

Another idea could be to add a section in your book about the 23 GoF design patterns in TypeScript

Will do. Thanks! :rose:

stherrienaspnet commented 7 years ago

Sometime when i look at desing pattern code sample i found it easier to anderstand if code look like real world sample. If you take a look at this site they always have a section real world http://www.dofactory.com/net/strategy-design-pattern

Thanks again!

Le 16 mars 2017 10:03 PM, "Basarat Ali Syed" notifications@github.com a écrit :

Another idea could be to add a section in your book about the 23 GoF design patterns in TypeScript

Will do. Thanks! 🌹

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/basarat/typescript-book/issues/249#issuecomment-287246328, or mute the thread https://github.com/notifications/unsubscribe-auth/AF19cYclvBvpiW0pUCcrldGGzes-Kiviks5rmenfgaJpZM4MfV4G .

stherrienaspnet commented 7 years ago

Hello Basarat,

I'm currently teaching design pattern during my lunch time to my co-workers (I'm far from specialist) using real world example. Maybe i could send you my implementations using TypeScript, sure you will find things to improve:) This morning i made search about abstract class and it's usage into your book but could not find usage of it, i finally google it to make sure i have to use extends. Maybe this could be a good idea to add an example of abstract class usage.

Best regards,

Stephane :)

On Thu, Mar 16, 2017 at 11:41 PM, Stephane Therrien < stherrienaspnet@gmail.com> wrote:

Sometime when i look at desing pattern code sample i found it easier to anderstand if code look like real world sample. If you take a look at this site they always have a section real world http://www.dofactory. com/net/strategy-design-pattern

Thanks again!

Le 16 mars 2017 10:03 PM, "Basarat Ali Syed" notifications@github.com a écrit :

Another idea could be to add a section in your book about the 23 GoF design patterns in TypeScript

Will do. Thanks! 🌹

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/basarat/typescript-book/issues/249#issuecomment-287246328, or mute the thread https://github.com/notifications/unsubscribe-auth/AF19cYclvBvpiW0pUCcrldGGzes-Kiviks5rmenfgaJpZM4MfV4G .

--

felixbillon commented 7 years ago

Hello everyone,

Just a link for inspiration : https://github.com/kamranahmedse/design-patterns-for-humans

I hope this will help.

stherrienaspnet commented 7 years ago

Really nice!