World Congress 2023 • Sep 27, 2023

10 must-know design patterns for JS Devs

Erick Wendel

Are you using TypeScript like a Ferrari to deliver pizza? Master these ten essential Vanilla JavaScript design patterns to transform messy scripts into highly scalable applications.

Pause
Mute Enter Fullscreen
#1 about 5 min

Identifying problems in single-file JavaScript applications

Global state and lack of folder structure create hard-to-maintain legacy codebases.

#2 about 4 min

Organizing code with single responsibility and factory patterns

Applying the single responsibility principle splits functionality into manageable views, controllers, and services.

#3 about 4 min

Building universal applications with the abstract factory pattern

Standardizing contracts shares core logic between web and terminal interfaces.

#4 about 3 min

Structuring complex components with builder and fluent APIs

The builder pattern creates modular UI components and flexible queries without massive configuration files.

#5 about 3 min

Reusing state configuration with the test data builder

The test data builder standardizes mock setups and HTTP responses to avoid copy-pasting scenarios.

#6 about 2 min

Managing application events using the observer design pattern

The observer pattern decouples event subscriptions and notifications for analytics and logging integrations.

#7 about 4 min

Injecting behaviors dynamically using the decorator pattern

Decorator functions extend capabilities like performance tracking without modifying the underlying implementation.

#8 about 3 min

Processing large payloads efficiently with streams and generators

Consuming data on demand using the yield keyword prevents UI blocking during large payloads.

#9 about 5 min

Exploring ECMAScript private fields and TypeScript adoption trade-offs

Audience questions cover private class fields in modern JavaScript and the necessity of TypeScript.

Matching moments

1:22 min

Introduction to front-end architecture design patterns

Abdu Taviq Abdu Taviq · Europe 2026 Virtual

2:28 min

Expected features and performance defaults in modern JavaScript frameworks

Sasha Shynkevich · LIVE

5:10 min

Evaluating the operational trade-offs of modern javascript frameworks

Chris Heilmann Chris Heilmann +2 · LIVE

5:05 min

Identifying scenarios where JavaScript remains an essential tool

Aaron T. Grogg · Coffee With Developers

2:37 min

Addressing the complaints about JavaScript as a programming language

Sasha Shynkevich · LIVE

2:11 min

Answering audience questions on JavaScript performance strategies

Michele Riva · World Congress 2023