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

Abstraction

The goal in this lecture is to prepare the ground work for the next following lectures. Our goal is to make our singleton abstract so it can be less aware of the items that it is controlling opening the doors for us to change the interface that will be used.

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