News

All design patterns have been implemented in ES6, the new version of javascript. Since javascript does not have any implementation of interfaces, the examples here use implied interfaces, which means ...
As a good JavaScript developer, you strive to write clean, healthy, and maintainable code. You solve interesting challenges that, while unique, don’t necessarily require unique solutions. You ...
They are easily reusable: Design patterns document a reusable solution which can be modified to solve multiple particular problems, as they are not tied to a specific problem.
Resulting in a call to the correct function on our strategy object. That’s it, thanks for reading! tl;dr Reduce cyclomatic complexity in your JavaScript with the Strategy Pattern and utilize the fact ...