If you want to write beautiful, structured, and maintainable JavaScript code, this guide shows you how to apply both classical and modern design patterns to the language. The patterns in this book provide reusable code solutions to common problems in software design, and give you a shared vocabulary for describing solutions to others. You'll explore several popular design patterns in plain JavaScript as well as jQuery and other abstracted libraries. If you're familiar with concepts such as closures and prototypal inheritance, you'll be able to determine why some patterns may be more suitable for your projects than others. Learn the structure of design patterns and how they're written Examine basic pattern categories: creational, structural, behavioral, and anti-patterns Get the basics of 15 JavaScript implementations of classical and modern design patterns Dive into several popular JavaScript patterns in greater detail - including some less frequently used Discover what design patterns look like when implemented with jQuery Explore three formats for writing modular JavaScript: AMD, CommonJS, and Harmony Learn popular design patterns for jQuery plugins
- ISBN10 1449331815
- ISBN13 9781449331818
- Publish Date 30 August 2012 (first published 1 January 2012)
- Publish Status Out of Print
- Out of Print 11 May 2023
- Publish Country US
- Imprint O'Reilly Media
- Format Paperback
- Pages 150
- Language English