Blog

Notes on data structures & algorithms, system design, and things I learn along the way.

Learning DSA? Follow the structured path — ordered articles from recursion to dynamic programming.→
October 18, 2026HTTP Compression: gzip, Brotli and zstd3 min read

Text responses shrink by 5–20× when compressed, and browsers ask for it on every request. How Accept-Encoding and Content-Encoding negotiate a format, how gzip, Brotli and zstd compare, static versus on-the-fly compression, what not to compress, and the one security caveat.

#Web
October 18, 2026URLs: Anatomy, Encoding, and the URL API3 min read

What each part of a URL means, which part the server never sees, how percent-encoding works (and why + sometimes means a space), when to use encodeURIComponent versus encodeURI, and why the URL and URLSearchParams classes beat string concatenation — including for security.

#Web
October 18, 2026Web Components and the Shadow DOM3 min read

Browsers have a built-in component model: custom elements with lifecycle callbacks, the shadow DOM for encapsulated markup and styles, slots for composition, and ways to theme from outside. How each part works, how they fit with frameworks, and when native components are the right choice.

#Web
October 17, 2026Responsive Images: srcset, sizes, Modern Formats and Lazy Loading3 min read

Images are usually the heaviest part of a page. How srcset and sizes let the browser download the right resolution for each screen, when to use <picture> for formats and art direction, how width and height prevent layout shift, and why the hero image should never be lazy-loaded.

#Web
October 17, 2026Web Accessibility Fundamentals for Developers4 min read

How screen readers, keyboards and other assistive technology see a page through the accessibility tree — and the handful of habits that cover most of it: semantic HTML, names for every control, keyboard and focus, enough contrast, and ARIA only when HTML runs out.

#Web
October 16, 2026CSRF: How Another Site Can Act as You3 min read

Cross-site request forgery makes your browser send an authenticated request you never intended — because cookies go along automatically. How the attack works, why it doesn't need to read the response, and the defences that stop it: SameSite cookies, CSRF tokens, Origin checks, and safe GET requests.

#Web
October 16, 2026JWTs Explained: What's Inside, What They Guarantee, and What They Don't4 min read

A JSON Web Token is a signed, readable bundle of claims. How the header, payload and signature fit together, how verification works without a database lookup, the verification mistakes that have broken real systems, and the hard part: expiry, revocation, and where to store the token.

#Web
October 16, 2026OAuth 2.0 and PKCE: 'Sign in with…' Step by Step10 min read

How an app gets permission to act on your behalf at another service without ever seeing your password. The authorization code flow, why PKCE protects the code in transit, what state, scopes, access and refresh tokens are for, and how OpenID Connect adds login on top.

#Web
October 9, 2026Service Workers: Making a Website Work Offline3 min read

A service worker is a script that sits between your page and the network and can answer requests itself. How it's installed and updated, the main caching strategies — cache-first, network-first, stale-while-revalidate — and the lifecycle details that trip everyone up.

#Web
October 8, 2026Core Web Vitals: LCP, INP and CLS in Plain Language3 min read

Three numbers that describe how a page feels to a real user: how fast the main content appears, how quickly it responds, and how much it jumps around. What each one measures, the thresholds that count as good, and the fixes that move them.

#Web

20 posts tagged Web · page 1 of 2