Skip to content
toolbelt

Developer Guides & Explainers

One question per post, answered properly — how the tools work, what actually matters in a workflow, and the technical details behind the scenes.

Latest articles

42 articles

How I Actually Read a Messy API Response

You paste a wall of JSON from a network tab and need to see its shape. Here is how formatting helps, and the mistakes I make most often.

Read guide

Fixing the JSON Error You Cannot Find

The parser says line 412 and you swear line 412 looks fine. Here is what actually goes wrong, and how to find it faster.

Read guide

When Minifying JSON Actually Helps

Removing whitespace saves bytes, but it is rarely the win people hope for. Here is the honest maths and when to bother.

Read guide

Navigating a JSON Response Too Big to Read

A 4,000 line response is not something you scroll. Collapse it, walk to the one branch you need, and get out.

Read guide

Making XML Readable Without Breaking It

SOAP responses and legacy exports arrive as one unbroken line. Indenting them reveals the structure — and the problems.

Read guide

Reading Minified HTML Someone Else Deployed

The only copy of the markup you have is 200 KB on one line. Formatting is the first step to reading it.

Read guide

Understanding the Stylesheet You Inherited

Compressed CSS is technically CSS, but nobody has ever debugged it on one line. Expanding it is step one.

Read guide

Reading Third-Party JavaScript

A bundled library is not meant to be read. Formatting gets it close enough that you can answer the one question you have.

Read guide

Making a 400-Line Query Reviewable

Long queries rarely have logic bugs. They have formatting bugs — a join that binds to the wrong line and nobody notices in review.

Read guide

Why YAML Breaks at 2am

YAML is pleasant until it is not. A tab, a stray colon, or an inconsistent indent will take your pipeline down. Here is how to find it fast.

Read guide

Getting Spreadsheet Data into Code Without Pain

Someone sends you a spreadsheet. You need it as JSON. This is the boring problem with more edge cases than you expect.

Read guide

Getting JSON Into a Spreadsheet

Your API returns nested objects and someone wants it in Excel by Friday. Here is what survives the trip and what does not.

Read guide

Bridging a SOAP API to Modern Code

The integration you have to talk to speaks XML. Everything else you own speaks JSON. Here is the seam.

Read guide

Producing XML a Legacy System Will Accept

Hand-built XML from a template is how you get "unexpected character" at the worst moment. Generate it properly.

Read guide

Base64 Is Not Encryption, and That Matters

Base64 makes text look scrambled. That is exactly why people put sensitive data in it and call it protected. It is not.

Read guide

The Double-Encoding Bug You Will Hit Eventually

A space becomes %20, then %2520, and suddenly your search returns nothing. Here is why, and how to stop it.

Read guide

Reading a JWT and Knowing What It Proves

Decoding a token tells you what it claims. It tells you nothing about whether the claims are true. Those are different questions.

Read guide

UUIDs in a Database: The Real Tradeoffs

Random UUIDs avoid collisions and wreck your index performance. The version you pick has consequences.

Read guide

Debugging a Regex That Works in Your Head

The pattern matches what you expect on one input and silently fails on another. Seeing the captures is how you find out why.

Read guide

That Cron Expression Runs at the Wrong Time

You wrote 0 0 * * 1 and expected Mondays. Here is why day-of-week and day-of-month interact badly.

Read guide

Why Your Timestamp Is Off by Exactly a Day

The number is right, the date is wrong. Nine times in ten it is milliseconds versus seconds, or a timezone you did not think about.

Read guide

Checking a Snippet Before You Commit It

You pasted HTML into a template and it looked wrong. A preview shows the truth in seconds instead of a deploy.

Read guide

Passing WCAG Contrast Without Redesigning

Your brand colour fails AA and the designer will not change it. Here is how to find the smallest shift that passes.

Read guide

Why Your Link Looks Broken on Twitter

The page is live and the card shows no image. Nine times out of ten it is a missing tag or an image that fails a size check.

Read guide

Turning a Network Tab Copy Into Code You Can Run

Copy as cURL gives you a working request. You need working code. The conversion is mechanical except for the four places it is not.

Read guide

Checking a Download Actually Arrived Intact

The vendor publishes a SHA-256 and you have a file. Comparing them takes ten seconds and prevents a very bad afternoon.

Read guide

Spotting What Actually Changed in a Config File

You edited one line and the pull request says 400. Reading a diff properly saves you from approving the wrong thing.

Read guide

Renaming a Field Without Breaking the API

The frontend wants camelCase, the API returns snake_case, and somewhere in between a key silently becomes undefined.

Read guide

Why a QR Code Scans on One Phone and Not Another

QR codes fail for three reasons: too small, too dense, or missing their quiet zone. Here is how to get all three right.

Read guide

Inlining an Image Without Slowing the Page

A data URI removes a request and adds 33 percent to the bytes. On a small icon that is a win. On a photo it is a mistake.

Read guide

Reading a Kubernetes Manifest as Plain Data

You want to check what your pipeline will actually apply. Converting the YAML to JSON makes it inspectable.

Read guide

Turning API Output Into a Manifest

The dashboard gave you JSON and the cluster wants YAML. The conversion is mechanical, and the mistakes are predictable.

Read guide

Finding One Field in a Huge Response

You know the value exists. You do not want to click through a tree to find it. JSONPath gets you there in one line.

Read guide

Signing a JWT and Understanding What You Prove

Testing auth code needs a valid token. Generating one by hand is error-prone, and getting the signature wrong teaches you nothing about why.

Read guide

The Security Headers Most Sites Still Forget

Three headers prevent most of the cheap attacks. They take an afternoon to add and almost nobody has all of them.

Read guide

The .env Mistake That Breaks the Deploy

A stray quote swallows the next line. The app starts, one variable is undefined, and you spend an hour on it.

Read guide

Getting Data Out of a Dump File

The only copy of your data is INSERT statements. Here is how to read them back into something you can work with.

Read guide

Loading JSON Into a Database Without Quote Bugs

The name is O’Brien and your hand-built INSERT breaks. Here is how escaping actually works.

Read guide

Why Your README Table Renders as Text

Markdown looks simple until a table collapses into a paragraph. The cause is almost always a blank line.

Read guide

Fixtures That Come Back the Same Every Time

Random test data is useless when a test fails at 3am. A seed makes it reproducible, which is the whole point.

Read guide

Seconds or Milliseconds? Count the Digits

Ten digits is seconds, thirteen is milliseconds. Get it wrong and you are off by decades, not seconds.

Read guide

Why an Icon From a Design Tool Is 40KB

Design tools save SVGs for editing, not for the web. Most of the bytes are metadata nobody needs.

Read guide