کتاب Learning JavaScript Design Patterns: الگوهای طراحی مدرن جاوااسکریپت و React

عنوان:

Learning Javascript Design Patterns

نویسنده:

Addy Osmani

انتشارات:

O'Reilly Media, Inc

تاریخ انتشار

2023

حجم:

4.5MB

دانلود

معرفی کتاب: " الگوهای طراحی جاوا اسکریپت: راهنمای توسعه دهنده جاوا اسکریپت و React"

آیا می‌خواهید کدی زیبا، ساختارمند و قابل نگهداری با جاوااسکریپت بنویسید و الگوهای طراحی مدرن را به زبان جاوااسکریپت اعمال کنید؟ آیا به کدی پاک، کارآمد و قابل مدیریت علاقه‌مندید؟ می‌خواهید با بهترین شیوه‌های جدید آشنا شوید؟ اگر پاسخ شما بله است، ویرایش دوم به‌روز شده کتاب Learning JavaScript Design Patterns نقطه شروع ایده‌آلی برای شما خواهد بود.

نویسنده Addy Osmani به شما نشان می‌دهد چگونه الگوهای طراحی مدرن را به جاوااسکریپت و React اعمال کنید—از جمله ماژول‌ها، میکسن‌ها، ناظران (Observers) و میدیاتورها. شما با الگوهای عملکردی و رندرینگ مانند رندرینگ سمت سرور و معماری Islands آشنا خواهید شد. همچنین خواهید آموخت که الگوهای معماری مانند MVC، MVP و MVVM چگونه از منظر یک توسعه‌دهنده اپلیکیشن وب مدرن مفید هستند.

این کتاب بررسی می‌کند:

  • الگوهای معماری برای ساختاردهی کامپوننت‌ها و اپلیکیشن‌ها
  • بیش از 20 الگوی طراحی در جاوااسکریپت و React که برای توسعه‌دهندگان در هر سطحی قابل استفاده است
  • دسته‌بندی‌های مختلف الگوها شامل الگوهای خلاقانه (Creational)، ساختاری (Structural) و رفتاری (Behavioral)
  • الگوهای عملکردی ضروری مانند ایمپورت‌های داینامیک و کد-اسپلیتینگ (Code-Splitting)
  • الگوهای رندرینگ مانند رندرینگ سمت سرور، هیدراسیون (Hydration)، معماری Islands و بیشتر

مخاطبان این کتاب

این کتاب برای توسعه‌دهندگانی است که می‌خواهند کدهای بهینه و قابل نگهداری در جاوااسکریپت و React بنویسند و به کارگیری الگوهای طراحی را به بهترین نحو ممکن یاد بگیرند.

فهرست مطالب

  • Preface
  • 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
  • Modules for the Server
  • Advantages of Using Modules
  • Classes with Constructors, Getters, and 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
  • Creational Patterns
  • The Constructor Pattern
  • The Module Pattern
  • The Revealing Module Pattern
  • The Singleton Pattern
  • The Prototype Pattern
  • The Factory Pattern
  • Structural Patterns
  • The Facade Pattern
  • The Mixin Pattern
  • Subclassing
  • Mixins
  • The Decorator Pattern
  • Pseudoclassical Decorators
  • Advantages and Disadvantages
  • Flyweight
  • Behavioral Patterns
  • The Observer Pattern
  • The Mediator Pattern
  • The Command Pattern
  • Summary
  • 8. JavaScript MV* Patterns
  • MVC
  • MVC for JavaScript Developers
  • What Does MVC Give Us?
  • Smalltalk-80 MVC in JavaScript
  • Summary of MVC
  • MVP
  • MVVM
  • Pros and Cons
  • MVC Versus MVP Versus MVVM
  • Modern MV* Patterns
  • Summary
  • 9. Asynchronous Programming Patterns
  • Asynchronous Programming
  • Background
  • Promise Patterns
  • async/await Patterns
  • Additional Practical Examples
  • Summary
  • 10. Modular JavaScript Design Patterns
  • A Note on Script Loaders
  • AMD
  • CommonJS
  • AMD and CommonJS: Competing, but Equally Valid Standards
  • Summary
  • 11. Namespacing Patterns
  • Namespacing Fundamentals
  • Single Global Variables
  • Prefix Namespacing
  • Object Literal Notation
  • Nested Namespacing
  • Immediately Invoked Function Expressions
  • Namespace Injection
  • Advanced Namespacing Patterns
  • Recommendation
  • Summary
  • 12. React.js Design Patterns
  • An Introduction to React
  • Higher-Order Components
  • Render Props Pattern
  • Hooks Pattern
  • State Hook
  • Static Import
  • Dynamic Import
  • Code-Splitting
  • PRPL Pattern
  • Loading Prioritization
  • List Virtualization
  • Conclusions
  • Summary
  • 13. Rendering Patterns
  • Importance of Rendering Patterns
  • Client-Side Rendering
  • Server-Side Rendering
  • Static Rendering
  • Streaming SSR
  • Edge SSR
  • Hybrid Rendering
  • Progressive Hydration
  • Islands Architecture
  • React Server Components
  • Summary
  • 14. Application Structure for React.js
  • Introduction
  • Application Structure for Modern React Features
  • Other Best Practices
  • Application Structure for Next.js Apps
  • Summary
  • 15. Conclusions
  • Appendix. References
  • Index

مشخصات

نام کتاب

Learning Javascript Design Patterns

نویسنده

Addy Osmani

انتشارات

O'Reilly Media, Inc

تاریخ انتشار

2023

ISBN

9781098139872

تعداد صفحات

407

زبان

انگلیسی

فرمت

pdf

حجم

4.5MB

موضوع

Javascript; React; Software Design Patterns