browse/

156 results
computer-science/hash-tables-how-python-finds-a-key-without-searching-for-it.md Hash tables: how Python finds a key without searching for it You type `ages["cat"]` and Python answers instantly, even with a million entries. It does not search. It calculates where "cat" must be… 4 min read · 5 Oct tools/debugging-for-beginners-step-through-code-to-find-an-off-by-one.md Debugging for beginners: step through code to find an off-by-one Your code prints 6 and you expected 10. A debugger lets you slow the program down, run one line at a time, and watch every variable change… 3 min read · 5 Oct networks/packets-why-the-internet-cuts-your-message-into-numbered-pieces.md Packets: why the internet cuts your message into numbered pieces When you send a message online, it never travels as one block. The internet cuts it into small packets, each with a label saying where it… 5 min read · 5 Oct databases/what-is-a-database-index-find-one-row-without-reading-them-all.md What is a database index? Find one row without reading them all Ask a database for one person among a million rows and it could read every row until it finds them. That is slow. An index is the… 5 min read · 4 Oct computers/the-call-stack-how-your-computer-remembers-where-to-come-back-to.md The call stack: how your computer remembers where to come back to When one function calls another, how does the computer remember where to come back to? It keeps a pile of frames called the call stack… 5 min read · 4 Oct web/what-is-json-edit-it-live-and-see-why-apis-are-so-strict-about-it.md What is JSON? Edit it live and see why APIs are so strict about it When an app asks a server for data, the reply has to travel as plain text. JSON is the format most web APIs use: six kinds of value… 5 min read · 4 Oct languages/why-does-0-1-0-2-give-0-30000000000000004-in-python.md Why does 0.1 + 0.2 give 0.30000000000000004 in Python? Type 0.1 + 0.2 into Python and you get 0.30000000000000004. It is not a bug: computers store fractions in binary, and one tenth has no… 4 min read · 4 Oct mobile/two-phones-one-note-what-happens-when-edits-collide-offline.md Two phones, one note: what happens when edits collide offline? Phones lose signal all the time, so good apps keep a local copy of your data and sync with a server later. But what happens when two… 5 min read · 3 Oct ai/embeddings-how-a-computer-measures-that-a-kitten-is-like-a-cat.md Embeddings: how a computer measures that a kitten is like a cat How does a computer know that kitten is closer to cat than to car? It can't read meaning, but it can measure it. An embedding turns a word… 4 min read · 3 Oct security/who-really-owns-this-link-read-a-web-address-before-you-click.md Who really owns this link? Read a web address before you click A scary message says your account is locked and the link has your bank's name in it. Does that make it safe? No: only the host part of a… 4 min read · 3 Oct software-design/your-first-unit-test-catch-the-leap-year-bug-a-quick-check-misses.md Your first unit test: catch the leap-year bug a quick check misses A unit test is a tiny piece of code that checks another piece of code: you pick an input, write down the answer you expect, and let the… 5 min read · 3 Oct infrastructure/what-is-ci-the-robot-that-tests-your-code-every-time-you-push.md What is CI? The robot that tests your code every time you push You change one line, it looks fine, and two days later something far away breaks. Continuous integration (CI) is a robot that prevents… 5 min read · 2 Oct