browse/

156 results
computer-science/heaps-how-a-computer-always-knows-the-most-urgent-item-without-sorting.md Heaps: how a computer always knows the most urgent item without sorting everything A hospital waiting room, a game's task list and a map app all need the same thing: the most urgent item, right now, while new items keep… 6 min read · 15 Nov tools/regular-expressions-describe-the-shape-of-text-and-watch-a-pattern-fin.md Regular expressions: describe the shape of text and watch a pattern find it A regular expression describes the shape of text instead of spelling it out, so one short pattern can find every phone number or check that… 4 min read · 14 Nov networks/dhcp-how-a-device-gets-an-address-the-moment-it-joins-the-wi-fi.md DHCP: how a device gets an address the moment it joins the Wi-Fi Every device on a network needs its own address, but nobody types one in when you join café Wi-Fi. A helper called DHCP hands them out with… 6 min read · 9 Nov databases/sql-window-functions-how-every-row-gets-a-rank-or-running-total-withou.md SQL window functions: how every row gets a rank or running total without collapsing the table A window function adds a calculated column to every row without collapsing rows the way GROUP BY does. Learn what OVER, PARTITION BY and… 4 min read · 8 Nov computers/endianness-why-the-bytes-of-a-number-can-be-stored-backwards.md Endianness: why the bytes of a number can be stored backwards Store the number 0x12345678 in memory and you might expect the bytes in the order 12 34 56 78. Most laptops and phones store them as 78 56… 5 min read · 7 Nov web/stacking-contexts-why-z-index-9999-can-still-lose-to-z-index-2.md Stacking contexts: why z-index: 9999 can still lose to z-index: 2 You give a dropdown z-index: 9999 and it still hides behind a box that only says 2. The number is not too small: browsers sort layers in… 6 min read · 4 Nov languages/javascript-closures-how-a-function-remembers-a-variable-after-the-func.md JavaScript closures: how a function remembers a variable after the function that made it has finished A function in JavaScript can still use a variable long after the function that created it has finished. That is called a closure, and you… 5 min read · 3 Nov mobile/screen-readers-how-a-phone-decides-what-to-say-about-a-button-it-can-t.md Screen readers: how a phone decides what to say about a button it can't see A phone screen reader like VoiceOver or TalkBack can't see your pictures. It reads a hidden list of items, each with a role, a label and a… 4 min read · 3 Nov ai/rag-how-a-chatbot-looks-things-up-before-it-answers.md RAG: how a chatbot looks things up before it answers A chatbot has never read your shop's rules, so when you ask it about them it may guess, and a confident wrong guess is called a… 5 min read · 3 Nov security/digital-signatures-how-a-message-proves-who-wrote-it-and-that-nobody-c.md Digital signatures: how a message proves who wrote it and that nobody changed it How can you tell that a message really came from who it says, and that nobody changed a word on the way? A digital signature does both with… 4 min read · 3 Nov software-design/feature-flags-how-to-ship-code-switched-off-and-turn-it-on-for-10-of-u.md Feature flags: how to ship code switched off and turn it on for 10% of users A feature flag is a yes/no setting your code checks before choosing between old and new behaviour, so you can ship code switched off and… 5 min read · 2 Nov infrastructure/structured-logs-why-a-line-of-json-beats-a-sentence-when-something-bre.md Structured logs: why a line of JSON beats a sentence when something breaks at 3 a.m. A plain log line like "order 404 by alice took 87ms" reads well to a human, but a search for 404 also matches order numbers and the middle… 4 min read · 2 Nov