Learning JavaScript Design Patterns (Paperback)

Addy Osmani

買這商品的人也買了...

商品描述

With Learning JavaScript Design Patterns, you’ll learn how to write beautiful, structured, and maintainable JavaScript by applying classical and modern design patterns to the language. If you want to keep your code efficient, more manageable, and up-to-date with the latest best practices, this book is for you.

Explore many popular design patterns, including Modules, Observers, Facades, and Mediators. Learn how modern architectural patterns—such as MVC, MVP, and MVVM—are useful from the perspective of a modern web application developer. This book also walks you through modern module formats, how to namespace code effectively, and other essential topics.

  • Learn the structure of design patterns and how they are written
  • Understand different pattern categories, including creational, structural, and behavioral
  • Walk through more than 20 classical and modern design patterns in JavaScript
  • Use several options for writing modular code—including the Module pattern, Asyncronous Module Definition (AMD), and CommonJS
  • Discover design patterns implemented in the jQuery library
  • Learn popular design patterns for writing maintainable jQuery plug-ins

"This book should be in every JavaScript developer’s hands. It’s the go-to book on JavaScript patterns that will be read and referenced many times in the future." —Andrée Hansson, Lead Front-End Developer, presis!

商品描述(中文翻譯)

《學習 JavaScript 設計模式》這本書將教你如何運用經典和現代的設計模式來寫出美觀、結構良好且易於維護的 JavaScript。如果你想讓你的程式碼高效、易於管理且符合最新的最佳實踐,這本書非常適合你。

書中介紹了許多流行的設計模式,包括模組、觀察者、外觀和中介者。你還將從現代網頁應用程式開發者的角度,了解現代架構模式(如 MVC、MVP 和 MVVM)的用途。本書還介紹了現代模組格式、有效使用命名空間代碼和其他重要主題。

本書的內容包括:

- 學習設計模式的結構和撰寫方式
- 了解不同的模式類別,包括創建型、結構型和行為型模式
- 介紹超過 20 種經典和現代的 JavaScript 設計模式
- 使用多種選項來撰寫模組化的程式碼,包括模組模式、異步模組定義(AMD)和 CommonJS
- 探索 jQuery 函式庫中實現的設計模式
- 學習撰寫易於維護的 jQuery 插件的流行設計模式

"Andrée Hansson, presis! 的首席前端開發者表示:『這本書應該在每個 JavaScript 開發者手中。它是關於 JavaScript 設計模式的必讀書籍,未來將會被多次閱讀和參考。』"