browse/
156 results
computer-science/stacks-and-queues-why-undo-takes-the-newest-item-and-a-printer-takes-t.md
Stacks and queues: why undo takes the newest item and a printer takes the oldest
Press undo and the last thing you typed disappears first. Send documents to a shared printer and the first one is printed first. Both are…
tools/git-branches-why-making-one-doesn-t-copy-your-project.md
Git branches: why making one doesn't copy your project
When someone says "make a branch for that," it sounds like Git must copy your whole project. It doesn't. A branch is just a name stuck on…
networks/diffie-hellman-how-two-strangers-agree-on-a-secret-while-everyone-list.md
Diffie-Hellman: how two strangers agree on a secret while everyone listens
How can a browser and a website that have never met agree on a secret key while everyone on the Wi-Fi is listening? The trick is…
databases/sql-indexes-why-finding-one-row-among-200-000-takes-about-18-steps.md
SQL indexes: why finding one row among 200,000 takes about 18 steps
A database with 200,000 customers can answer "find this email" by reading every row, or by reading about 18 entries. The difference is an…
computers/floating-point-why-0-1-0-2-is-not-exactly-0-3.md
Floating point: why 0.1 + 0.2 is not exactly 0.3
Type `0.1 + 0.2` into JavaScript or Python and you get `0.30000000000000004`. It is not a bug, and it is not your mistake. Computers store…
web/the-dom-how-a-browser-turns-html-text-into-a-tree.md
The DOM: how a browser turns HTML text into a tree
A web page starts as plain text, yet a script can add a bullet to it while it is open. How? The browser never works on your text directly…
languages/rust-ownership-why-let-b-a-makes-a-unusable.md
Rust ownership: why let b = a makes a unusable
Why does Rust refuse to compile `let b = a;` followed by a use of `a`? Because of ownership: every value has exactly one owner, and…
mobile/offline-sync-what-happens-when-two-phones-edit-the-same-contact.md
Offline sync: what happens when two phones edit the same contact
You edit a contact's phone number on a plane. Your partner fixes the city on a tablet. Both devices are offline, then both reconnect. Which…
ai/embeddings-how-a-computer-knows-a-pony-is-closer-to-a-horse-than-a-tru.md
Embeddings: how a computer knows a pony is closer to a horse than a truck
A computer sees the letters in "pony" and nothing else, yet search boxes can still tell that a pony is closer to a horse than to a truck…
security/password-strength-why-length-beats-a-capital-letter-and-a-symbol.md
Password strength: why length beats a capital letter and a symbol
Everyone says passwords need a capital, a number and a symbol, and also that they should be long. Which one actually matters more? The…
software-design/idempotency-why-clicking-pay-twice-should-charge-you-once.md
Idempotency: why clicking Pay twice should charge you once
You tap Pay, the screen shows an error, you tap again, and your card is charged twice. Networks drop messages, so a phone often cannot tell…
infrastructure/ci-pipelines-how-a-computer-decides-a-change-is-safe-to-merge.md
CI pipelines: how a computer decides a change is safe to merge
Push a change and a green tick or a red cross appears a minute later. How does a machine decide? It does not understand your code. It reads…