Topic

Web Development

Hand-picked tutorials, guides and examples on Web Development — explained simply.

  • 70 articles
  • 73 min of reading
  • 2 sub-topics
  • 07 Oct, 2026 last updated

Showing 70 articles

ReactNew 1 min read

What's New in React 19: Actions, use() and More

React 19 is mostly about making async work, especially forms and data mutations, simpler. Here are the features you'll use most, with short examples. Actions An Action is an async function used in a transition. React tracks its pending state, errors and optimi...

07 Oct, 2026 Author 457 125
Read article
Modern CSS & TailwindNew 1 min read

Tailwind CSS v4: What Changed and How to Upgrade

Tailwind CSS v4 is a ground-up rewrite. The biggest change for day-to-day work: configuration moves from tailwind.config.js into your CSS file. Install with Vite npm install tailwindcss @tailwindcss/vite // vite.config.js import { defineConfig } from 'vite'; i...

06 Oct, 2026 Author 1.48K 30
Read article
FastAPINew 1 min read

FastAPI Tutorial: Build a REST API in Python

FastAPI is a Python web framework built on type hints. You describe your inputs and outputs with types, and FastAPI validates requests, serialises responses and generates interactive API docs for you. Install and run pip install "fastapi[standard]" fastapi dev...

04 Oct, 2026 Author 1.17K 110
Read article
ReactNew 1 min read

Form Actions and useActionState in React 19

Before React 19, a form needed state for values, errors, loading and the response. useActionState folds most of that into one hook. The signature const [state, formAction, isPending] = useActionState(actionFn, initialState); // actionFn(previousState, formData...

19 Sep, 2026 Author 220 95
Read article
REST & GraphQL APIs 1 min read

API Pagination: Offset vs Cursor-Based

Any list endpoint needs pagination. The two main approaches behave very differently on large or fast-changing data. Offset pagination GET /articles?page=3&per_page=20 SELECT * FROM articles ORDER BY published_at DESC LIMIT 20 OFFSET 40; Pros: simple, lets user...

16 Sep, 2026 Author 1.16K 88
Read article
React 1 min read

Optimistic UI in React with useOptimistic

When a user likes a post or sends a message, waiting for the server before updating the screen feels sluggish. Optimistic UI shows the result immediately and corrects it if the request fails. The hook const [optimisticState, addOptimistic] = useOptimistic(actu...

01 Sep, 2026 Author 693 115
Read article
React 1 min read

React Server Components Explained

React Server Components (RSC) render on the server and send their result to the browser, not their JavaScript. They can read databases and files directly, and they add nothing to your client bundle. Server vs client components Server Components (default in fra...

27 Jul, 2026 Author 1.09K 37
Read article
FastAPI 1 min read

JWT Authentication in FastAPI

This guide adds a /auth/token login endpoint that returns a JWT, and a dependency that protects routes. It follows the pattern FastAPI's own docs use. Install pip install pyjwt "pwdlib[argon2]" Hashing and tokens # security.py from datetime import datetime, ti...

24 Jul, 2026 Author 316 119
Read article
FastAPI 1 min read

Testing FastAPI Apps with pytest

FastAPI apps are easy to test because endpoints are plain functions behind an ASGI app, and dependencies can be swapped per test. A first test # test_books.py from fastapi.testclient import TestClient from main import app client = TestClient(app) def test_crea...

06 Jul, 2026 Author 139 124
Read article
REST & GraphQL APIs 1 min read

GraphQL vs REST: How to Choose

GraphQL and REST both work well. The right choice depends on your clients, your data and your team, not on which one is newer. The core difference With REST, the server decides the shape of each endpoint's response. With GraphQL, the client asks for exactly th...

05 Jul, 2026 Author 1.41K 39
Read article
React 1 min read

Goodbye forwardRef: Refs as Props in React 19

Passing a ref to a custom component used to require wrapping it in forwardRef . In React 19, function components simply receive ref as a prop. Before and after // React 18 const Input = forwardRef(function Input(props, ref) { return <input ref={ref} className=...

21 Jun, 2026 Author 1.3K 103
Read article
Modern CSS & Tailwind 1 min read

CSS Grid Recipes: auto-fit, minmax and Subgrid

CSS Grid handles two-dimensional layout: rows and columns. These recipes cover most real-world layouts. Responsive cards without media queries .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1.5rem; } Columns...

19 Jun, 2026 Author 877 73
Read article
Node.js 1 min read

Error Handling in Express 5

Express 5 finally handles async route handlers properly: if an async handler throws or returns a rejected promise, the error goes to your error middleware. No more express-async-errors or wrapping every route in try/catch. Async handlers just work app.get('/us...

19 Jun, 2026 Author 1.39K 82
Read article
Modern CSS & Tailwind 1 min read

Scroll-Driven Animations in Pure CSS

Scroll effects used to mean scroll event listeners or IntersectionObserver. Scroll-driven animations connect a normal CSS animation to the scroll position, and they run off the main thread, so they stay smooth. A reading progress bar .progress { position: fixe...

14 May, 2026 Author 778 47
Read article
Node.js 1 min read

Graceful Shutdown in Node.js

Containers and process managers stop your app by sending SIGTERM . If you exit immediately, requests in progress fail and database transactions are cut off. A graceful shutdown finishes the current work first. The steps Stop accepting new connections. Let in-f...

13 May, 2026 Author 423 114
Read article
FastAPI 1 min read

Deploying FastAPI with Docker

A production FastAPI deployment is usually a container running an ASGI server behind a reverse proxy or load balancer. Dockerfile FROM python:3.13-slim # uv for fast, reproducible installs COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv WORKDIR /...

13 May, 2026 Author 1.22K 53
Read article
REST & GraphQL APIs 1 min read

Documenting APIs with OpenAPI

OpenAPI (formerly Swagger) is a standard, machine-readable description of a REST API. One spec file can produce interactive docs, client SDKs, mock servers and request validation. A minimal spec openapi: 3.1.0 info: title: Orders API version: 1.0.0 servers: -...

12 May, 2026 Author 920 47
Read article
TypeScript 1 min read

any vs unknown vs never in TypeScript

These three types sit at the edges of TypeScript's type system and are often confused. Using the right one is the difference between real safety and false confidence. any: switch off checking let data: any = JSON.parse(input); data.user.name.toUpperCase(); //...

26 Apr, 2026 Author 397 49
Read article
Node.js 1 min read

Finding Memory Leaks in Node.js

A memory leak shows up as memory that keeps climbing until the process is killed or restarts. The fix starts with proving where the memory goes. 1. Confirm the leak setInterval(() => { const { heapUsed, rss } = process.memoryUsage(); console.log(`heap ${(heapU...

25 Apr, 2026 Author 184 77
Read article
REST & GraphQL APIs 1 min read

Rate Limiting APIs: Algorithms and Headers

Rate limits protect your API from abuse, runaway scripts and accidental traffic spikes, and keep things fair between customers. Common algorithms Fixed window - count requests per calendar minute. Simple, but allows bursts at window edges (100 at 12:00:59 and...

24 Apr, 2026 Author 1.13K 32
Read article