Comparing JSON Objects Without Losing Your Mind
Diffing JSON looks trivial until key order, number types, and nested arrays bite you. Here's how to compare JSON objects reliably, the gotchas that trip people up, and a worked example....
Tutorials, tips, and insights for modern developers
Diffing JSON looks trivial until key order, number types, and nested arrays bite you. Here's how to compare JSON objects reliably, the gotchas that trip people up, and a worked example....
Stripping whitespace from JSON is a small optimization that pays off in high-volume APIs and bandwidth-constrained clients. Here's when to bother, what to watch for, and a quick worked example....
A practical guide to bcrypt password hashing — what it does, when to use it, the gotchas that bite people, and a worked example you can copy....
Why bcrypt is still a solid default for storing passwords, the gotchas that bite people in production, and a short worked example you can copy....
MD5 still shows up everywhere in production code, and most of the time that's fine — until it isn't. Here's a practical breakdown of when to use it, when to run away, and a worked example....
MD5 still shows up everywhere in real codebases. Here's a practical look at what it actually does, where it's fine to use, the security traps to avoid, and a quick worked example....
HTML escaping is one of those boring-sounding topics that quietly prevents XSS, broken layouts, and garbled text. Here's what actually matters when you're escaping entities in real code....
Why bcrypt is still a solid choice for storing passwords, the gotchas that bite people, and a short worked example you can actually use....
MD5 still shows up everywhere in real codebases. Here's a practical look at what it actually does, when it's fine to use, the security traps to avoid, and a quick worked example....
JSON formatting isn't glamorous, but a well-structured payload saves you hours of debugging. Here's how to format JSON properly, when it matters, and the gotchas that trip people up....
URL encoding trips up more backend bugs than it should. Here's what percent-encoding actually does, when to reach for it, and the gotchas that waste your afternoon....
Base64 shows up everywhere from data URIs to JWTs, but plenty of developers misunderstand what it's for. Here's a practical rundown of how it works, where it belongs, and the gotchas that trip people up....