Learn: in-depth guides for developers
In-depth guides on data formats and the mistakes that cost hours. Every example can be run in the matching tool, in your browser.
CIDR notation: why a /31 has two usable hosts, what a /32 is for, and the subnet mistakes to avoid
The rule 'usable hosts = 2^n − 2' fails for /31 and /32. How CIDR prefixes map to address counts, real calculator output for every common size, point-to-point links, single-host rules, cloud-reserved addresses and the 0.0.0.0/0 trap.
Hashing is not encryption: what a hash can do, and why passwords need bcrypt
A hash cannot be reversed, but that does not make it a safe way to store a password. Real digests of MD5, SHA-1 and SHA-256, what HMAC adds, and why a deliberately slow function such as bcrypt is the right tool for passwords.
Unix timestamps: seconds, milliseconds or microseconds, and the dates where they go wrong
A Unix timestamp is a number with no unit written on it. How to tell seconds from milliseconds by the digits, why 2147483647 matters in 2038, what a negative timestamp means, and the time zone and leap-second traps.
UUID v4, UUID v7 and ULID: which ID to use, and what is inside each
Random IDs scatter inserts across a database index, and time-ordered ones do not. What the bits of a UUID v4, UUID v7 and a ULID contain, how likely a collision really is, and what a time-ordered ID gives away.
Base64 is not encryption: what it does, and the bugs it causes
Base64 turns bytes into text and anyone can turn it back. Where it belongs, where people wrongly trust it as security, and the bugs behind most broken Base64: UTF-8 vs Latin-1, URL-safe alphabets, padding and binary data.
JSON, CBOR, MessagePack and Protobuf: the same data in four sets of bytes
One small document encoded four ways, with the real bytes and sizes. What each format stores, why binary is smaller before compression and much less so after it, and how to choose and debug each one.
Regex backtracking: how one innocent pattern can freeze a server (ReDoS)
A regular expression that works on every test can take seconds, then hours, on one slightly longer input. How catastrophic backtracking works, measured on real patterns, and how to write and test regexes that stay fast.
URL encoding pitfalls: %20 or +, double encoding, and the characters that break links
Percent-encoding looks simple until a plus sign turns into a space or %2520 shows up in a log. How URL encoding really works, the three encoders and when to use each, and the four bugs behind most broken links.
Cron and time zones: why your 02:30 job runs twice or never
Cron has five fields and a handful of traps: day-of-month OR day-of-week, steps that reset, and daylight saving time. Learn what actually runs, and how to schedule so it stays predictable.
CSV edge cases: quotes, newlines, delimiters and the leading zero
CSV looks trivial until a field contains a comma, a quote or a line break. What RFC 4180 says, what it leaves out, and the conversion mistakes that corrupt real data.
Why JSON silently changes your big numbers (and how to stop it)
JavaScript turns 9007199254740993 into 9007199254740992 without an error. See where the precision goes, which IDs are at risk, and the fixes that work in practice.
JWT pitfalls: decoding a token is not verifying it
A JWT payload is readable by anyone, and an unsigned token can look perfectly normal. The mistakes behind most JWT bugs: alg none, algorithm confusion, seconds vs milliseconds, and trusting claims you did not check.
YAML surprises: the Norway problem, octal numbers and version strings
In YAML 1.1 the country code NO becomes false, 010 becomes 8 and 1:30 becomes 90. See each surprise in a converter, why it happens, and how to write YAML that means what it says.