🌐
Web & Performance
Building fast, accessible, resilient web apps
Web & Performance
Rate Limiting Explained: Fixed Windows, Sliding Windows and the Token Bucket
Rate limiting protects services from overload, abuse and runaway clients — and done badly, it frustrates legitimate users or lets bursts straight through. How the common algorithms work, which trade-offs they make, and how clients should respond to a 429.
8 min read
Web & Performance
SQL Injection, Explained Properly: Why Parameterized Queries Work and Escaping Does Not
SQL injection is decades old and still turns up in new code, usually where a query is built from strings. How the attack actually works, why parameterized queries close it at the root, where ORMs still leave gaps, and the layers that limit the damage when something slips through.
8 min read
Web & Performance
Storing Passwords Properly: Slow Hashes, Unique Salts and Why SHA-256 Is the Wrong Tool
Every application with a login form is one database leak away from exposing its users’ passwords. How password hashing differs from ordinary hashing, why speed is the enemy, what salts and peppers do, and the habits that keep a breach from becoming a disaster.
8 min read
Web & Performance
Idempotency: The Property That Makes Retries Safe
Networks fail and clients retry. Idempotency is what stops a retried payment from charging someone twice — a small idea with large consequences.
9 min read
Web & Performance
The Cache Headers That Decide Whether Your Deploy Is Visible
You shipped a fix and some users still see the old page for days. Not a build problem — a caching one. What each header actually does, and the pattern that makes deploys instant and caching aggressive at the same time.
9 min read
Web & Performance
The Bugs That Only Appear on Slow Connections
Your app works perfectly on your laptop and breaks for one user in ten. Usually the cause is an ordering assumption that only holds when responses come back fast. Here is how to find them deliberately.
9 min read
Web & Performance
Sandboxing and Syscall Filtering: seccomp, Pledge and Capability Security
Restricting which syscalls a process is allowed to make is one of the more effective security boundaries available on a modern system, precisely because every syscall is a door into something a compromised process would love to reach.
9 min read
Web & Performance
Error Handling and Cancellation in Async Code: The Two Problems Async/Await Syntax Does Not Solve for You
Async/await makes asynchronous code look synchronous, which is exactly why it is easy to forget that it still fails and gets abandoned in ways synchronous code never does — and both of those need to be handled deliberately, not assumed away by the syntax.
9 min read
Web & Performance
SLOs and Error Budgets: Turning Observability Into a Decision, Not Just a Dashboard
Collecting signals is only half of observability. The other half is having an agreed number that turns "is this bad enough to stop shipping" from an argument into a lookup.
9 min read
Web & Performance
Why Forms Are Secretly One of the Hardest Things on the Web
A form looks trivial — some inputs and a button. The complexity hiding inside validation, state and accessibility is enormous.
9 min read
Web & Performance
HTTP Status Codes: What the Numbers Are Really Telling You
Beyond 404 and 500, status codes carry precise meaning. Using them correctly makes APIs easier to consume and debug.
9 min read
Web & Performance
Stateful Frontend Components: A Guide to Managing Complex UI Logic
Learn how to create stateful frontend components that handle complex UI logic without sacrificing performance or maintainability.
9 min read
Web & Performance
Measuring Web Performance Properly: Lab Tools, Field Data and Budgets
Knowing that a page is slow is not the same as knowing why, or by how much a given fix actually helped. The tools and methodology for measuring performance rigorously, rather than by eyeballing a loading spinner.
9 min read
Web & Performance
Mastering the Art of API Design: Best Practices for Building Scalable and Maintainable APIs
Designing a robust and maintainable API is crucial for any web application, but where do you start?
9 min read
Web & Performance
Debouncing and Throttling: Taming Events That Fire Too Often
Some events fire dozens of times a second. Debouncing and throttling are the two techniques for responding sensibly instead of drowning.
9 min read
Web & Performance
Lazy Loading: Don’t Download What Nobody Has Scrolled To Yet
Loading every image up front wastes bandwidth and slows the first paint. Lazy loading defers what’s off-screen until it’s actually needed.
9 min read
Web & Performance
CORS, Explained Without the Frustration
The dreaded CORS error is not the browser being difficult. It’s a security feature doing exactly its job — and understanding it removes the mystery.
9 min read
Web & Performance
JWTs Under the Hood: Structure, Signing and Why Revoking One Is Hard
A JWT is not encrypted, not a secret container, and not something a server can simply delete once issued. Understanding its three actual parts explains both its appeal and its most awkward limitation.
10 min read
Web & Performance
What a CDN Actually Does (and Why Your Site Feels Faster With One)
A content delivery network is less mysterious than it sounds: it’s about putting copies of your files physically closer to your users.
9 min read
Web & Performance
Cookies, Sessions and Tokens: How Websites Remember You
HTTP forgets everything between requests, yet you stay logged in. The three mechanisms that create memory on a stateless web, and the security trade-offs of each.
9 min read
Web & Performance
Debounce vs Throttle: Taming Events That Fire Too Often
Scroll, resize, keystroke and mousemove events can fire hundreds of times a second. Two small techniques stop them from melting your app, and knowing which to use is the whole skill.
9 min read
Web & Performance
CORS, Explained Without the Rage: Why Your Fetch Got Blocked
Every web developer meets the CORS error and most misunderstand it. What the browser is actually protecting, why the fix lives on the server, and how the preflight works.
9 min read
Web & Performance
Render-Blocking Resources: Why Your Page Is Blank for a Second
That flash of nothing before the page appears is usually a render-blocking script or stylesheet. What blocks rendering, why, and the handful of fixes that reclaim the wait.
9 min read
Web & Performance
What Actually Happens When You Type a URL and Press Enter
DNS, TCP, TLS, HTML parsing, render trees — the classic interview question answered properly, as the story of one page load from keystroke to pixels.
9 min read
Web & Performance
Why Your Web Page Is Slow (and the Metrics That Actually Matter)
Speed is not one number. A practical tour of what makes pages feel slow, the Core Web Vitals worth watching, and the highest-return fixes for real sites.
9 min read
Web & Performance
HTTP Caching Demystified: max-age, ETags and the Art of Not Sending Bytes
The fastest request is the one that never happens. How browser and CDN caching actually decide what to store, when to revalidate, and how to never break a deploy again.
9 min read
Web & Performance
Semantic HTML: The Accessibility Win You Get for Free
Using the right element instead of a generic container is one of the cheapest, highest-impact things you can do for accessibility, SEO and maintainability.
9 min read