Overview
I have covered here 20+ design patterns explanations in javascript. We will be discussing all these design patterns using Ja...
For further actions, you may consider blocking this person and/or reporting abuse
Code in screenshots? Genius
Advanced JS pro tip: don't use classes in JavaScript.
NestJS has entered the chat
React Hooks changed the description for this group to "really, don't use classes in JavaScript" 😆
Saving this as I will go through it in future.
ha reading this again
That was an amazing article man!
It goes straight to the point on showing those patterns. Really helpful.
Saved to use as a cheatsheet someday, haha, :D
One friendly tip I would like to give you is about those code screenshots.
Next time, try using the code formatter that the editor give you. It helps the readability (also, in mobile devices, the screenshots don't show too much detail at the large ones).
Hi Ravi 👋
A post very interesting! I enjoyed reading it, but I have a little doubt
In the second design patter(Abstract Factory) you create the class DrinkFactory with the method prepare, and this method is never used why do you created it then?
Many thanks =)
Thanks Alberto for this observation.
But it's kind of an extension of functionality if you want to use. Though i have not used it in example, but it can give you an idea that how you can customize the behaviour with base methods which can be applied to all the factories that extends base class.
Bookmarked for a weekend read
Excellent
Wow, i have saved this for later. Thanks man
Great ever
Nice but detail code is not much provided. You have just put a part of code snippet not fully code provided. I think you should provide detail code examples. However it was nice.