Book Image

JavaScript Design Patterns 20 Patterns for Advancing Your JavaScript Skills [Video]

By : Ben Fhala
Book Image

JavaScript Design Patterns 20 Patterns for Advancing Your JavaScript Skills [Video]

By: Ben Fhala

Overview of this book

<p>Design patterns are intelligent, reusable strategies for solving common development problems faced by developers. For Web developers working with JavaScript, design patterns provide a tested, methodical plan of attack for tackling challenges that arise in real-world application development.</p> <p>JavaScript Design Patterns 20 Patterns for Advancing Your JavaScript Skills&nbsp;will immerse you in the world of intelligent JavaScript programming, demonstrating to Web developers how to mobilize design patterns and presenting key programming concepts and common solutions to frequently occurring programming problems.</p> <p>Exploring 20 different design patterns, this video course demonstrates the internal logic of each, while providing examples and real-world scenarios that developers can adopt and implement when programming in JavaScript.</p> <p>The course opens by introducing the conceptual logic behind design patterns: what they are; what they are not; what makes a pattern; major pattern types; and what role they play in the bigger picture of Web development. We then dive straight into a real-world case study, building a mock application with in-built issues that design patterns can solve.</p> <p>Following on from this introduction, the course quickly expands into exploring the core design patterns underlying the major pattern types: Creational, Structural, and Behavioral patterns. With the knowledge delivered throughout the course, developers will come away from JavaScript Design Patterns 20 Patterns for Advancing Your JavaScript Skills armed with a powerful arsenal for solving a wide array of different JavaScript programming problems.</p> <h1>Style and Approach</h1> <p>This course adopts a problem-solution approach, demonstrating how to solve a wide array of real-world JavaScript programming problems using different design patterns. Replete with code examples and detailed explanations of the logic at play, the course helps viewers understand and practice the lessons taught.</p>
Table of Contents (5 chapters)
Chapter 3
Structural Design Patterns - Part 1
Content Locked
Section 4
The Decorator Design Pattern
The Decorator enables us to add functionality to an existing object without creating a new inheritance chain or updating a prototype. The idea is to add functionality to items based on need instead of adding them to the object from the get-go. This can become very useful when you have multiple objects with partially shared functionality. - Add features to specific items - Add features without creating a subclass or changing the original interface/constructor