02Geek HTML5 and JavaScript, TypeScript, React, Flash, ActionScript online School

Structural design patterns (Part 1)

Structural design patterns focus on the structure of classes/objects. In this section we will meet the Adapter, Composite and Decorator design patterns.

Duration:

32:24

Created with

Ben Fhala

Ben Fhala

Ben Fhala is the creative force and founder behind 02geek, a pioneering platform dedicated to making web development accessible to everyone. With over 18 years of experience in the industry, Ben has a deep passion for teaching and a knack for breaking down complex concepts into easy-to-understand lessons.

Structural design patterns (Part 1) Overview

What you'll learn

Structural design patterns focus on the structure of classes/objects. In this section we will meet the Adapter, Composite and Decorator design patterns.

Abstraction

- Abstraction is key to making flexible designs. - Not everything needs to be planed in advance. - Modularly updating components to fit changes.

09:22

Adapter Design Pattern

- You need to keep an object with the same interface. - But, a library component demands a different interface. - or the object is missing a methods in it's API.

06:17

Composite Design Pattern

- Multiple objects with the same API. - When you need to control all at the same time. - Ideal in recursive elements that are %u201Cchained%u201D to each other.

12:15

Decorator Design Pattern

- Adding features to specific items. - Without creating a subclass. - Or changing the original interface/constructor.

04:30
Download Source Files