Design patterns and object creation

One of the most popular topics in Object-Oriented Programming is design patterns. They are known as reusable solutions to commonly occurring software design problems. Each pattern is identified by a name and describes a situation where components need to interact with each other to achieve a specific goal.

Note

Design patterns became popular in the mid-nineties after the publishing of the book Design Patterns: Elements of Reusable Object-Oriented Software by the so-called Gang of Four (GoF): Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides.

The patterns are described so that they can be reused regardless of the language used to implement it. However, the original patterns and the subsequent ones added ...

Get Mastering JavaScript Object-Oriented Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.