Preface

JavaScript is starting to become one of the most popular languages in the world. However, its history as a bit of a toy language, means that developers are tempted to ignore good design. Design patterns are a great tool to suggest some well-tried solutions.

What this book covers

This book is divided into two main parts, each of which contains a number of chapters. The first part of the book, which I'm calling Part 1, covers the classical design patterns, which are found in the GoF book. Part 2 looks at patterns, which are either not covered in the GoF book or the ones that are more specific to JavaScript.

Chapter 1, Designing for Fun and Profit, provides an introduction to what design patterns are and why we are interested in using design ...

Get Mastering JavaScript Design Patterns 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.