Book description
Discover how to use JavaScript design patterns to create powerful applications with reliable and maintainable code
In Detail
Applying design patterns to JavaScript code creates more reliable and maintainable code. In this book, you will explore different design patterns and learn where and how to implement them with the help of detailed examples.
In the first part of the book, we start off with an introduction to design patterns, and then move on to creating classical structures that are used to organize code. Next, we look at the creational, structural, and behavioral patterns. The second part of the book dives into patterns used for functional programming, model view patterns, patterns to build web applications, and messaging patterns. A number of very interesting advanced JavaScript patterns such as dependency injection and live postprocessing are also covered.
By the end of this book, you will learn to identify places where a pattern would improve code readability and maintainability.
What You Will Learn
- Organize your code with classes and modules
- Explore the original Gang of Four patterns and learn how to apply them to JavaScript
- Decrease the degree of coupling in applications and increase code reuse through creational patterns
- Rethink your coding through the use of functional patterns
- Master advanced JavaScript patterns such as dependency injection and live postprocessing
- Improve the testability of your code with mock objects, mocking frameworks, and monkey patching
- Discover the patterns that are the basis of modern JavaScript libraries such as Knockout.js, Angular.js, and Backbone.js
Table of contents
-
Mastering JavaScript Design Patterns
- Table of Contents
- Mastering JavaScript Design Patterns
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. Designing for Fun and Profit
- I. Classical Design Patterns
- II. Other Patterns
- Index
Product information
- Title: Mastering JavaScript Design Patterns
- Author(s):
- Release date: November 2014
- Publisher(s): Packt Publishing
- ISBN: 9781783987986
You might also like
book
Mastering JavaScript Design Patterns - Second Edition
Write reliable code to create powerful applications by mastering advanced JavaScript design patterns About This Book …
book
Mastering JavaScript Object-Oriented Programming
Unleash the true power of JavaScript by mastering Object-Oriented programming principles and patterns About This Book …
book
JavaScript Patterns
What's the best approach for developing an application with JavaScript? This book helps you answer that …
book
Learning JavaScript Design Patterns
With Learning JavaScript Design Patterns, you’ll learn how to write beautiful, structured, and maintainable JavaScript by …