LEADER 00000cam a22006617i 4500 003 OCoLC 005 20240129213017.0 006 m o d 007 cr cnu---unuuu 008 230506t20232023cau o 000 0 eng d 020 9781098139834|qelectronic book 020 1098139836|qelectronic book 020 9781098139841|qelectronic book 020 1098139844|qelectronic book 035 (OCoLC)1378390355 037 9781098139865|bO'Reilly Media 037 A537298E-D06C-455C-A85F-D681686D89C7|bOverDrive, Inc. |nhttp://www.overdrive.com 040 EBLCP|beng|erda|cEBLCP|dORMDA|dUKAHL|dTEFOD|dYDX|dOCLCF |dOCLCO 049 INap 082 04 005.2/762 082 04 005.133|223/eng/20230622 082 04 005.2/762|223/eng/20230509 099 eBook O'Reilly for Public Libraries 100 1 Osmani, Addy,|eauthor. 245 10 Learning JavaScript Design Patterns :|ba JavaScript and React developer's guide /|cAddy Osmani.|h[O'Reilly electronic resources] 250 Second edition. 264 1 Sebastopol, CA :|bO'Reilly Media,|c2023. 264 4 |c©2023 300 1 online resource (299 p.) 336 text|btxt|2rdacontent 337 computer|bc|2rdamedia 338 online resource|bcr|2rdacarrier 500 MVC 505 0 Cover -- Copyright -- Table of Contents -- Preface -- Structure of the Book -- Conventions Used in This Book -- Using Code Examples -- O'Reilly Online Learning -- How to Contact Us -- Acknowledgments -- Chapter 1. Introduction to Design Patterns -- History of Design Patterns -- What Is a Pattern? -- An Everyday Use Case for Design Patterns -- Summary -- Chapter 2. "Pattern"-ity Testing, Proto- Patterns, and the Rule of Three -- What Are Proto- Patterns? -- The "Pattern" Tests -- Rule of Three -- Summary -- Chapter 3. Structuring and Writing Patterns -- The Structure of a Design Pattern 505 8 Well-Written Patterns -- Writing a Pattern -- Summary -- Chapter 4. Anti-Patterns -- What Are Anti-Patterns? -- Anti-Patterns in JavaScript -- Summary -- Chapter 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, and Setters -- Classes in JavaScript Frameworks -- Summary -- Related Reading 505 8 Chapter 6. Categories of Design Patterns -- Background -- Creational Design Patterns -- Structural Design Patterns - - Behavioral Design Patterns -- Design Pattern Classes -- Summary -- Chapter 7. JavaScript Design Patterns -- Creational Patterns -- 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 505 8 State Management in React -- The Prototype Pattern -- The Factory Pattern -- When to Use the Factory Pattern -- When Not to Use the Factory Pattern -- Abstract Factories -- Structural Patterns -- The Facade Pattern -- 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 505 8 Managing the Extrinsic States -- The Flyweight Pattern and the DOM -- Example: Centralized Event Handling -- Behavioral Patterns -- 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 Versus Facade -- The Command Pattern -- Summary -- Chapter 8. JavaScript MV* Patterns 520 Do you want to write beautiful, structured, and maintainable JavaScript by applying modern design patterns to the language? Do you want clean, efficient, manageable code? Want to stay up-to-date with the latest best practices? If so, the updated second edition of Learning JavaScript Design Patterns is the ideal place to start. Author Addy Osmani shows you how to apply modern design patterns to JavaScript and React--including modules, mixins, observers, and mediators. You'll learn about performance and rendering patterns such as server-side rendering and Islands architecture. You'll also learn how architectural patterns like MVC, MVP, and MVVM are useful from the perspective of a modern web application developer. This book explores: Architectural patterns for structuring your components and apps More than 20 design patterns in JavaScript and React, applicable for developers at any level Different pattern categories including creational, structural, and behavioral Essential performance patterns including dynamic imports and code- splitting Rendering patterns such as server-side rendering, hydration, Islands architecture, and more Additionally, you'll explore modern JavaScript syntax like JavaScript modules, React patterns like Hooks, higher-order components (HOCs), and more, to stay ahead in the ever- evolving world of web development. 588 Description based on online resource; title from digital title page (viewed on June 22, 2023). 590 O'Reilly|bO'Reilly Online Learning: Academic/Public Library Edition 650 0 JavaScript (Computer program language) 650 0 Software patterns. 650 0 Computer software|xReusability. 650 0 Scripting languages (Computer science) 650 6 JavaScript (Langage de programmation) 650 6 Logiciels|xModèles de conception. 650 6 Logiciels|xRéutilisation. 650 6 Langages de script (Informatique) 650 7 Computer software|xReusability|2fast 650 7 JavaScript (Computer program language)|2fast 650 7 Scripting languages (Computer science)|2fast 650 7 Software patterns|2fast 776 08 |iPrint version:|aOsmani, Addy|tLearning JavaScript Design Patterns|dNew York : O'Reilly Media, Incorporated,c2023 |z9781098139872 856 40 |uhttps://ezproxy.naperville-lib.org/login?url=https:// learning.oreilly.com/library/view/~/9781098139865/?ar |zAvailable on O'Reilly for Public Libraries 938 Askews and Holts Library Services|bASKH|nAH41409724 938 ProQuest Ebook Central|bEBLB|nEBL30507932 994 92|bJFN