StackPractices

frontend

Practical resources about frontend for software engineers.

64 results

Building Fast and Accessible User Interfaces

Frontend development is more than component libraries. Performance budgets, accessibility compliance, state management, and progressive enhancement determine whether users stay or leave.

This topic covers patterns for web components, state management strategies, accessibility audits with WCAG, and performance optimization techniques. Resources include both framework-agnostic principles and specific implementations for modern stacks.

intermediate

Express.js Middleware Composition Patterns

Build maintainable Express applications using middleware composition patterns for authentication,...

intermediate

Server-Sent Events with Node.js and Express

Build server-to-client push with Server-Sent Events in Node.js and Express. Covers connections,...

intermediate

Build a Bidirectional Chat with WebSocket and Node.js

How to build a real-time bidirectional chat application using WebSocket with room-based messaging,...

beginner

Deep Clone Objects in JavaScript: Beyond JSON.parse

Compare deep clone strategies including JSON.parse, structuredClone, manual recursion, and library...

deep-clone javascript clone duplication
intermediate

Prevent Race Conditions in JavaScript Async Code

Identify and fix race conditions in asynchronous JavaScript using proper sequencing, atomic...

beginner

URL Encoding and Decoding

Master URL encoding in JavaScript and other languages with encodeURI, encodeURIComponent, plus-safe...

intermediate

Container Queries for Component Responsiveness

How to use CSS container queries for component-level responsive layouts that adapt to their...

intermediate

Design Tokens with CSS Custom Properties

How to build a design token system using CSS custom properties, including color scales, spacing,...

intermediate

Dark Mode with prefers-color-scheme and CSS Variables

How to implement dark mode using CSS prefers-color-scheme media query, CSS custom properties, and...

beginner

Build Responsive Email Templates with MJML

Create cross-client responsive email templates with MJML, compile them with TypeScript, inject live...

email frontend mjml handlebars
beginner

JavaScript Clipboard Copy and Paste

Copy text to clipboard programmatically in JavaScript with fallback

intermediate

Debounce and Throttle Functions in JavaScript

Control function execution rate with debounce and throttle. Covers leading and trailing edge,...

javascript debounce throttle performance
intermediate

JavaScript Event Loop

Understand how the JavaScript event loop works internally and how to write non-blocking code.

intermediate

JavaScript Infinite Scroll Pagination with

Implement scroll-based data loading in JavaScript with IntersectionObserver

beginner

JavaScript LocalStorage with TTL Expiration

Store data with TTL expiration in browser localStorage

intermediate

JavaScript Service Worker Offline Caching for PWA

Cache assets for offline PWA support with Service Workers and Cache API

javascript service-worker pwa offline
intermediate

Form Validation with react-hook-form and Zod

Build type-safe forms in React using react-hook-form with Zod schema validation, including nested...

intermediate

When to Use useMemo and useCallback

How and when to use React's useMemo and useCallback hooks for performance optimization, and when...

intermediate

Virtualize Long Lists with react-window

How to render large lists efficiently in React using react-window for DOM virtualization, including...

intermediate

Server-Side Rendering

Improve performance and SEO with server-side rendering using Next.js, Nuxt, Astro, and other...

No results found.