Remove UTF-8 BOM Before JSON or YAML Parse
TL;DR / Summary: A UTF-8 byte order mark at the start of a config file is invisible in many editors yet fatal to strict JSON and YAML parsers. Strip the…
TL;DR / Summary: A UTF-8 byte order mark at the start of a config file is invisible in many editors yet fatal to strict JSON and YAML parsers. Strip the…
TL;DR / Summary: Snapshot and golden-file tests fail when JSON key order drifts even though the payload meaning is identical. Sort object keys recursively before you serialize fixtures, then compare…
TL;DR / Summary: Support and eng tickets move faster when the failing URL is isolated from a noisy log dump. Extract http(s) links, strip tracking junk when safe, and paste…
TL;DR / Summary: Tabs copied from one editor can fail CI the moment a repo enforces spaces-only indentation. Convert tabs to the project’s space width before you paste into a…
TL;DR / Summary: Text that looks identical on screen can hash differently when one copy uses CRLF and the other uses LF. Normalize newlines to a single convention before hashing…
TL;DR / Summary: HMAC signatures over query strings fail when two sides serialize parameters in different orders. Sort keys with a documented rule, encode values the same way both clients…
TL;DR / Summary: Converting between camelCase, snake_case, and kebab-case looks like a one-line regular expression until an acronym appears. HTTPResponse, userID, and parse2DArray each break a different naive rule, and…
TL;DR / Summary: One word covers three measurements: bytes on disk or on the wire, characters in a database column, and symbols a person perceives. A name that fits a…
TL;DR / Summary: Entity escaping is an output decision, not an input cleanup step. Escape the five characters that can change markup at the moment you render, keep the raw…
TL;DR / Summary: A config diff full of duplicated lines is usually a merge artefact, not a real change. Sort and deduplicate each file into a working copy, compare the…