Cargando…

Typescript 4 design patterns and best practices : discover effective techniques and design patterns for every programming task /

A detailed and easy-to-follow guide to learning design patterns and modern best practices for improving your TypeScript development skills Key Features Understand, analyze, and develop classical design patterns in TypeScript Explore advanced design patterns taken from functional programming and reac...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Despoudis, Theo (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Publishing, 2021.
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)
Tabla de Contenidos:
  • Cover
  • Title Page
  • Copyright and Credits
  • Dedication
  • Contributors
  • Table of Contents
  • Preface
  • Section 1: Getting Started with TypeScript 4
  • Chapter 1: Getting Started with Typescript 4
  • Technical requirements
  • Introducing TypeScript 4
  • Working with input and output
  • Useful TypeScript 4 features
  • Understanding TypeScript and JavaScript's relationship
  • How does JavaScript compare to TypeScript?
  • Transitioning from JavaScript to TypeScript
  • Design patterns in JavaScript
  • Installing and using the code examples
  • Reviewing the libraries included in the code examples
  • Understanding the tsconfig.json file
  • Running the unit tests
  • Using VSCode with TypeScript
  • Using VSCode for this book's code
  • Inspecting types
  • Refactoring with VSCode
  • Introducing Unified Modeling Language (UML)
  • What is UML?
  • Learning UML class diagrams
  • Summary
  • Q & A
  • Further reading
  • Chapter 2: TypeScript Core Principles
  • Technical requirements
  • Working with advanced types
  • Using utility types
  • Using advanced types and assertions
  • OOP with TypeScript
  • Abstraction
  • Inheritance
  • Encapsulation
  • Polymorphism
  • Developing in the browser
  • Understanding the DOM
  • Using TypeScript with webpack
  • Using React
  • Developing in the server
  • Understanding the server environment
  • Using Express with TypeScript
  • Introducing design patterns in TypeScript
  • Why design patterns exist
  • Design patterns in TypeScript
  • Summary
  • Q&A
  • Further reading
  • Section 2: Core Design Patterns and Concepts
  • Chapter 3: Creational Design Patterns
  • Technical requirements
  • Creational design patterns
  • Singleton pattern
  • When do we use the Singleton?
  • UML class diagram
  • Classic implementation
  • Modern implementations
  • Variants
  • Testing
  • Criticisms of the singleton
  • Real-world examples
  • Prototype pattern
  • When do we use the Prototype pattern?
  • UML class diagram
  • Classic implementation
  • Testing
  • Criticisms of the Prototype pattern
  • Real-world examples
  • Builder pattern
  • When do we use Builder?
  • UML class diagram for Builder
  • Classic implementation
  • Testing
  • Modern implementations
  • Criticisms of Builder
  • Real-world examples
  • Factory method pattern
  • When do we use the Factory method?
  • UML class diagram
  • Classic implementation
  • Alternative implementations
  • Testing
  • Real-world examples
  • Abstract Factory pattern
  • When do we use the Abstract Factory?
  • UML class diagram
  • Classic implementation
  • Testing
  • Criticisms of Abstract Factory
  • Real-world example
  • Summary
  • Q&A
  • Further reading
  • Chapter 4: Structural Design Patterns
  • Technical requirements
  • Understanding structural design patterns
  • Adapter pattern
  • When to use Adapter
  • UML class diagram
  • Classic implementation
  • Testing
  • Criticisms of Adapter
  • Real-world use cases
  • Decorator pattern