YAML to TOML to .env: Five Values That Changed Without a Single ErrorConverting a config file feels like a formatting job. You change the syntax, check that the keys are all there, and ship it. Most of the time nothing breaks, which is exactly why the time it does brea3d ago · 10 min readfindutils.hashnode.dev
Why Your Countdown Falls Behind in a Background Tab: setInterval, Chrome's Timer Throttling and a Timer That Keeps TimeAlmost every countdown on the web starts like this: let remaining = 25 * 60; setInterval(() => { remaining--; render(remaining); }, 1000); It looks right on screen. Then someone starts a 25-minut4d ago · 11 min readfindutils.hashnode.dev
Reversing a String Is a Unicode Test: Indexing, Iteration and Palindromes in JavaScript, Python, PHP and GoA reader replied to my post on cutting text to a limit with a point worth its own article: the trouble starts before any cut, at array access and iteration. They linked a post on the palindrome proble5d ago · 10 min readfindutils.hashnode.dev
Cutting Text to a Limit Without Breaking It: Code Units, Bytes and Tokens in JavaScript and PythonMost apps cut text somewhere. A preview gets 160 characters, a push notification has a byte limit, a database column has a size, and a prompt for a language model has a token budget. The FindUtils pos6d ago · 11 min readfindutils.hashnode.dev
Is It Prime? Trial Division, Miller-Rabin and the 2^53 Wall in JavaScriptThe FindUtils Prime Checker guide makes two choices I wanted to test in code. The tool uses plain trial division because it "never guesses", and it refuses any input above 9,007,199,254,740,991 insteaOct 23 · 9 min readfindutils.hashnode.dev