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 articlesHow 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.
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.
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.
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.
Making XML Readable Without Breaking It
SOAP responses and legacy exports arrive as one unbroken line. Indenting them reveals the structure — and the problems.
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.
Understanding the Stylesheet You Inherited
Compressed CSS is technically CSS, but nobody has ever debugged it on one line. Expanding it is step one.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
UUIDs in a Database: The Real Tradeoffs
Random UUIDs avoid collisions and wreck your index performance. The version you pick has consequences.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Seconds or Milliseconds? Count the Digits
Ten digits is seconds, thirteen is milliseconds. Get it wrong and you are off by decades, not seconds.
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.