Words, precision
and power.
The details behind text processing, encoding, and document formats.
✦ AI-powered — understands natural language
Why `"abc" is "abc"` Is True But `"hello world" is "hello world"` Might Not Be — String Interning, Ropes, and Concatenation Complexity
Slug Collisions: What Happens When Two Pages Generate the Same URL, and How CMSs Handle It
Two posts titled "How to Make Sourdough Bread" generate identical slugs by default — and what happens next varies by CMS, from silent numeric suffixes (chocolate-chip-cookies-2) to outright rejection requiring manual resolution. Here's how different collision-handling approaches work, why date/ID-based URL structures avoid most collisions structurally, and the tricky edge case of new content colliding with an old slug's redirect.
String Repetition and ANSI Escape Codes: How Progress Bars, Borders, and Terminal UIs Are Built
A terminal progress bar, a box-drawn menu, and colored CLI output all rely on the same underlying operation: repeating a character a calculated number of times, often combined with ANSI escape codes for color and cursor control. Here's how string repetition builds progress bars and borders, why Unicode box-drawing characters connect seamlessly at corners, and how terminal width affects repeated-character output.
Pagination, Infinite Scroll, or "Read More": Three Answers to "This Content Is Too Long" and When Each Fits
"Read more" links, pagination, and infinite scroll are three different answers to "content is longer than the space available" — each with different SEO, accessibility, and UX trade-offs. Here's where each fits best, why infinite scroll's footer-reachability problem is well-documented, and how hybrid approaches (load-more buttons, infinite scroll with History-API pagination underneath) combine their benefits.
ROT13 in Puzzle Design: Why Escape Rooms and ARGs Use a Cipher That's Deliberately Not Secure
ROT13 in an escape room or puzzle hunt isn't there for security — it's there because recognizing "this is a substitution cipher" IS the puzzle, and decoding it afterward is trivial by design. Here's how puzzle designers use ROT13 as a "calibration" cipher, why shift-amount discovery becomes its own puzzle layer, and ROT13's self-inverse property for spoiler-text use.
Morse Code Isn't History: SOS, Aviation Navigation Beacons, and Why Amateur Radio Operators Still Choose CW
SOS — three dots, three dashes, three dots — wasn't chosen for "Save Our Souls." It was chosen because that specific rhythm is virtually impossible to mistake for anything else, even under terrible signal conditions, and works via radio, light, or sound. Here's why Morse code remains actively used today in aviation navigation beacon identifiers and amateur radio CW operation — not as history, but for genuine technical advantages.
Whitespace as Syntax: Python Indentation, YAML Structure, Prettier, and .editorconfig
Python uses indentation as syntax; YAML prohibits tabs entirely; Make requires tabs. Here's whitespace as code structure, the tabs vs spaces debate resolved by autoformatters like Prettier and Black, .editorconfig for cross-editor consistency, and the CRLF vs LF line ending problem in mixed-platform teams.
Text Diff in Practice: Legal Redlining, Code Review, and How AI Writing Assistants Show Changes
Legal document redlining, Git pull request review, Word's Track Changes, and AI writing assistants all use the same diff principle. Here's how each context uses comparison differently, why legal diff needs more than plain text comparison, and how AI tools use diff to show suggested edits.
Morse Code and the History of Digital Communication: From Telegraph Networks to Huffman Coding
Morse code was the first digital communication protocol — and its variable-length encoding by letter frequency is the same principle used in JPEG compression today. Here's how Huffman coding originated in Vail's counting printer type cases, why timing disambiguates codes without fixed delimiters, and why CW radio survived into the 21st century.
Character Frequency and NLP Foundations: How Zipf's Law Underlies Search Engines and Language Models
Word frequency analysis underlies search engines, compression algorithms, and how large language models learn. Here's Zipf's Law, TF-IDF for meaningful keyword extraction, how word embeddings come from co-occurrence statistics, and why the character frequency distribution you measure is the same foundation that GPT models learn from.
Sort Orders Explained: Why "file10" Sorts Before "file2" and When It Matters
"file10" sorts before "file2" alphabetically — which is correct for strings but wrong for filenames. Here's natural sort vs lexicographic sort, locale-aware collation for multilingual names, multi-column SQL ORDER BY, and why stable vs unstable sort algorithms matter in practice.
String Padding and Repetition Across Languages: Python, JavaScript, SQL, and Bash
Python's str * n, JavaScript's repeat() and padStart(), SQL's RPAD() and LPAD(), and bash printf are all solving the same problem: building strings of specific lengths and patterns. Here's the complete cross-language reference for string repetition and padding with practical formatting examples.
Automating Text Transformations in Spreadsheets: SUBSTITUTE, REGEXREPLACE, and Bulk Editing
Excel and Google Sheets have SUBSTITUTE, REGEXREPLACE, PROPER, and TRIM functions that automate text transformation across thousands of cells. Here's chained SUBSTITUTE formulas, REGEXREPLACE for phone number formatting and HTML stripping, and practical workflows for cleaning product exports and generating URL slugs.