Home/Categories/Web 开发

Web 开发

Next.js、React、TypeScript、前端工程化

Collection

This collection features articles and community discussions in the Web 开发 space, focusing on real-world engineering scenarios, tool selection, practical paths, and risk boundaries.

The page is continuously updated and serves as a learning roadmap, technology selection reference, and technical review entry point.

@admin·11 min read·Web Development

Monorepo Tooling: Turborepo vs. Nx

When packages and projects are scattered across multiple repositories, sharing code becomes difficult. This article explains monorepo benefits and costs, pnpm workspace basics, the tradeoffs between Turborepo and Nx, and which teams should adopt a monorepo.

#Next.js #TypeScript♥ 740 comments
@admin·13 min read·Web Development

Design Systems and Design Tokens

As products grow, UI values drift and components become inconsistent. This article explains Design Tokens as design atoms, layered component libraries from tokens to business components, theme switching, and a shared language that keeps design and engineering aligned.

#React #TypeScript♥ 820 comments
@admin·13 min read·Web Development

Functional Programming in TypeScript

Functional programming is not academic mysticism. It makes code more predictable, testable, and less error-prone. This guide covers practical FP in TypeScript: pure functions, immutability, composition, map/filter/reduce, Option/Either for null values and errors, and why pragmatic FP matters more than monad dogma.

#AI #TypeScript♥ 830 comments
@admin·9 min read·Web Development

Layered Caching Strategies for Web Applications

Caching is the Swiss-army knife of performance optimization, but misuse produces stale data. This article covers the web's multi-layer caching — browser (HTTP caching / Service Worker), CDN, server (Redis / in-memory), and database (query cache) — what each layer caches, invalidation strategies, and how to maintain cache consistency.

#Next.js #React♥ 860 comments
@admin·14 min read·Web Development

Web Performance Budgets: Making Speed a Discipline

Performance is not something you optimize occasionally; it must be maintained continuously. A performance budget sets a line that speed must never cross. This article explains how to allocate budgets across JS, images, and CSS, enforce them automatically in CI, and handle overruns by cutting features, optimizing, or negotiating.

#Next.js #React♥ 890 comments
@admin·13 min read·Web Development

Micro-Frontend Architecture: Splitting Large Applications

When a frontend outgrows a single repository, micro-frontends split it much like microservices. This article covers the motivations and costs, Module Federation, iframes, Web Components, and route-based distribution, their trade-offs, and why most teams should stay with a monorepo.

#React #TypeScript♥ 910 comments
@admin·8 min read·Web Development

CSS Animation Performance: GPU Acceleration and Compositing Layers

When animations stutter, 90% of the time you triggered reflow or repaint. This article explains CSS animation performance: animate only transform/opacity (compositing layers, no layout), proper and improper use of will-change, avoiding layout thrashing, and respecting prefers-reduced-motion for a smooth 60fps.

#React #TypeScript♥ 940 comments
@admin·10 min read·Web Development

Next.js Deployment Strategies: Vercel vs. Self-Hosting

Vercel is not the only way to deploy Next.js: self-hosting with Docker, Node, or static export, edge deployment, and hybrid approaches have different tradeoffs. This article compares four deployment models, their costs, and the build-vs-run pitfalls of NEXT_PUBLIC environment variables.

#Next.js #DevOps♥ 970 comments
@admin·11 min read·Web Development

Web Accessibility: A Practical Guide to WCAG

Accessibility is not a benefit for a minority. It supports ADA and EAA compliance, improves SEO, and raises product quality. This guide covers WCAG's four POUR principles, common frontend a11y failures, automated checks, manual testing, and accessibility gates in CI.

#React #TypeScript♥ 980 comments