Discover how to use JavaScript design patterns to create powerful applications with reliable and maintainable code
About This Book
- Learn how to use tried and true software design methodologies to enhance your Javascript code
- Discover robust JavaScript implementations of classic as well as advanced design patterns
- Packed with easy-to-follow examples that can be used to create reusable code and extensible designs
Who This Book Is For
If you are a developer interested in creating easily maintainable applications that can grow and change with your needs, then this book is for you. Some experience with JavaScript (not necessarily with entire applications written in JavaScript) is required to follow the examples written in the book.
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.