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 halves, each of which contains a number of chapters. The first half of the book, which we'll refer to as Part 1, covers the classical design patterns, which are found in the GoF book.

Chapter 1, Designing for Fun and Profit, introduces what design patterns are and why we are interested in using design patterns. We will also talk about some of the history of JavaScript to give you a historical context.

Chapter 2, Organizing Code

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