Check nearby libraries
Buy this book
This edition doesn't have a description yet. Can you add one?
Check nearby libraries
Buy this book
Subjects
| Edition | Availability |
|---|---|
|
1
Learning JavaScript Design Patterns: A JavaScript and React Developer's Guide
2023, O'Reilly Media, Incorporated, O'Reilly Media
in English
1098139879 9781098139872
|
zzzz
|
|
2
Learning JavaScript Design Patterns
2012, O'Reilly Media, Incorporated
in English
1449334881 9781449334888
|
zzzz
|
|
3
Learning JavaScript Design Pattern: A JavaScript and jQuery Developer's Guide
August 27, 2012, O'Reilly Media
1449331815 9781449331818
|
aaaa
|
|
4
Learning JavaScript Design Patterns
2012, O'Reilly Media, Incorporated
in English
1306812283 9781306812283
|
zzzz
|
Book Details
Table of Contents
Preface
1. Introduction
2. What Is a Pattern?
We Already Use Patterns Every Day
3. "Pattern"-ity Testing, Proto-Patterns, and the Rule of Three
4. The Structure of a Design Pattern
5. Writing Design Patterns
6. Anti-Patterns
7. Categories of Design Patterns
Creational Design Patterns
Structural Design Patterns
Behavioral Design Patterns
8. Design Pattern Categorization
A Brief Note on Classes
9. JavaScript Design Patterns
The Constructor Pattern
Object Creation
Basic Constructors
Constructors with Prototypes
The Module Pattern
Object Literals
Module Pattern
Module Pattern Variations
The Revealing Module Pattern
Advantages
Disadvantages
The Singleton Pattern
The Observer Pattern
Differences Between the Observer and Publish/Subscribe Pattern
Advantages
Disadvantages
Publish/Subscribe Implementations
The Mediator Pattern
Basic Implementation
Advanced Implementation
Example
Advantages and Disadvantages
Mediator Versus Observer
Mediator Versus Facade
The Prototype Pattern
The Command Pattern
The Facade Pattern
Notes on Abstraction
The Factory Pattern
When to Use the Factory Pattern
When Not to Use the Factory Pattern
Abstract Factories
The Mixin Pattern
Subclassing
Mixins
Advantages and Disadvantages
The Decorator Pattern
Pseudoclassical Decorators
Interfaces
Abstract Decorators
Decorators with jQuery
Advantages and Disadvantages
Flyweight
Using Flyweights
Flyweights and Sharing Data
Implementing Classical Flyweights
Converting Code to Use the Flyweight Pattern
A Basic Factory
Managing the Extrinsic States
The Flyweight Pattern and the DOM
10. JavaScript MV* Patterns
MVC
Smalltalk-80 MVC
MVC for JavaScript Developers
Models
Views
Controllers
Controllers in Another Library (Spine.js) Versus Backbone.js
What Does MVC Give Us?
Smalltalk-80 MVC in JavaScript
Delving Deeper
Summary
MVP
Models, Views, and Presenters
MVP or MVC?
MVC, MVP, and Backbone.js
MVVM
History
Model
View
ViewModel
Recap: The View and the ViewModel
Recap: The ViewModel and the Model
Pros and Cons
Advantages
Disadvantages
MVVM with Looser Data Bindings
MVC Versus MVP Versus MVVM
Backbone.js Versus KnockoutJS
11. Modern Modular JavaScript Design Patterns
A Note on Script Loaders
AMD
Getting Started with Modules
AMD Modules with Dojo
AMD Module Design Patterns (Dojo)
AMD Modules with jQuery
AMD Conclusions
CommonJS
Getting Started
Consuming Multiple Dependencies
Loaders and Frameworks That Support CommonJS
Is CommonJS Suitable for the Browser?
Related Reading
AMD and CommonJS: Competing, but Equally Valid Standards
Umd: AMD and CommonJS-Compatible Modules for Plug-ins
ES Harmony
Modules with Imports and Exports
Modules Loaded from Remote Sources
Module Loader API
CommonJS-like Modules for the Server
Classes with Constructors, Getters, and Setters
ES Harmony Conclusions
Related Reading
Conclusions
12. Design Patterns in jQuery
The Composite Pattern
The Adapter Pattern
The Facade Pattern
The Observer Pattern
The Iterator Pattern
Lazy Initialization
The Proxy Pattern
The Builder Pattern
13. jQuery Plug-in Design Patterns
Patterns
A Lightweight Start Pattern
Complete Widget Factory Pattern
Nested Namespacing Plug-in Pattern
Custom Events Plug-in Pattern (with the Widget Factory)
Prototypal Inheritance with the DOM-to-Object Bridge Pattern
jQuery UI Widget Factory Bridge Pattern
jQuery Mobile Widgets with the Widget Factory
RequireJS and the jQuery UI Widget Factory
Usage
Globally and Per-Call Overridable Options (Best Options Pattern)
A Highly Configurable and Mutable Plug-in Pattern
What Makes a Good Plug-in Beyond Patterns?
Quality
Code Style
Compatibility
Reliability
Performance
Documentation
Likelihood of Maintenance
Conclusions
Namespacing Patterns
Namespacing Fundamentals
Single Global Variables
Prefix Namespacing
Object Literal Notation
Nested Namespacing
Immediately Invoked Function Expressions (IIFE)s
Namespace Injection
Advanced Namespacing Patterns
Automating Nested Namespacing
Dependency Declaration Pattern
Deep Object Extension
Recommendation
14. Conclusions
Appendix: References
Index
Classifications
Edition Identifiers
Work Identifiers
Community Reviews (0)
Wikipedia citation
×CloseCopy and paste this code into your Wikipedia page. Need help?


