𝔖 Scriptorium
✦   LIBER   ✦

πŸ“

Learning JavaScript Design Patterns

✍ Scribed by Addy Osmani


Publisher
Reilly
Year
2023
Tongue
English
Leaves
159
Edition
2
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


Design patterns provide a common vocabulary to structure code, making it
easier to understand. They help enhance the quality of this connection to
other developers. Knowledge of design patterns helps us identify recurring
themes in requirements and map them to definitive solutions. We can rely on
the experience of others who have encountered a similar problem and devised
an optimized method to address it. This knowledge is invaluable as it paves
the way for writing or refactoring code to make it maintainable.

✦ Table of Contents


  1. Introduction to Design Patterns
    History of Design Patterns
    What Is a Pattern?
    An everyday use case for design patterns
    Summary
  2. β€œPattern”-ity Testing, Proto-Patterns, and the Rule of Three
    What are Proto-Patterns?
    The β€œPattern” Tests
    Rule of Three
    Summary
  3. Structuring and Writing Patterns
    The Structure of a Design Pattern
    Well Written Patterns
    Writing a pattern
    Summary
  4. Anti-Patterns
    What are Anti-Patterns
    Anti-Patterns in JavaScript
    Summary
  5. Modern JavaScript Syntax and Features
    The Importance Of Decoupling Applications
    Modules With Imports And Exports
    Module Objects
    Modules Loaded From Remote Sources
    Static Imports
    Dynamic Imports
    Import on Interaction
    Import on visibility
    Modules For The Server
    Advantages of using Modules
    Classes With Constructors, Getters & Setters
    Classes in JavaScript frameworks
    Summary
    Related Reading
  6. Categories of Design Patterns
    Background
    Creational Design Patterns
    Structural Design Patterns
    Behavioral Design Patterns
    Design Pattern Classes
    Summary
  7. JavaScript Design Patterns
    Choosing a Pattern
    The Constructor Pattern
    Object Creation
    Basic Constructors
    Constructors with Prototypes
    The Module Pattern
    Object Literals
    The Module Pattern
    Module Pattern Variations
    Modern Module Pattern with WeakMap
    Modules with modern libraries
    The Revealing Module Pattern
    Advantages
    Disadvantages
    The Singleton Pattern
    State management in React
    The Observer Pattern
    Differences Between the Observer and Publish/Subscribe Pattern
    Advantages
    Disadvantages
    Publish/Subscribe Implementations
    The Mediator Pattern
    A Simple Mediator
    Similarities And Differences
    Event Aggregator Use
    Mediator Use
    Event Aggregator (Pub/Sub) And Mediator Together
    Mediator/Middleware in modern JavaScript
    Mediator Vs. 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
    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
    Example: Centralized event handling
    Summary
    About the Author

πŸ“œ SIMILAR VOLUMES


Learning JavaScript Design Patterns
✍ Addy Osmani πŸ“‚ Library πŸ“… 2012 πŸ› O'Reilly Media 🌐 English

With this digital Early Release edition of Learning javascript Design Patterns, you get the entire book bundle in its earliest form – the author’s raw and unedited content – so you can take advantage of this content long before the book’s official release. You’ll also receive updates when significan

Learning JavaScript Design Patterns
✍ Addy Osmani πŸ“‚ Library πŸ“… 2012 πŸ› O'Reilly Media 🌐 English

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

Learning JavaScript Design Patterns
✍ Addy Osmani [Addy Osmani] πŸ“‚ Library πŸ“… 2012 πŸ› O’Reilly Media, Inc. 🌐 English

<span><div><p>With <i>Learning JavaScript Design Patterns</i>, 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 bes

Learning JavaScript Design Patterns
✍ Osmani, Addy πŸ“‚ Library πŸ“… 2012 πŸ› O'Reilly Media 🌐 English

"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 name

Learning JavaScript Design Patterns
✍ Osmani, Addy πŸ“‚ Library πŸ“… 2012 πŸ› O'Reilly Media 🌐 English

<p>With <i>Learning JavaScript Design Patterns</i>, you&#8217;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 pract

Learning JavaScript Design Patterns
✍ Addy Osmani πŸ“‚ Library πŸ“… 2012 πŸ› "O'Reilly Media, Inc." 🌐 English

<p>With <i>Learning JavaScript Design Patterns</i>, 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,