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

Composite Design Pattern

The composite design pattern enables us to control multiple elements at the same time (that have the same public API. This is very useful in situations when we need to control a large amount of items and want to have them react together to an action.

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