browse/
156 results
computer-science/breadth-first-search-how-a-maze-solver-finds-the-shortest-way-out.md
Breadth-first search: how a maze solver finds the shortest way out
How does a maze solver, or a map app, find the shortest route and not just any route? The answer is breadth-first search: explore every…
tools/git-staging-area-why-saving-your-work-takes-git-add-and-git-commit.md
Git staging area: why saving your work takes git add and git commit
Why does saving your work in Git take two commands, `git add` and `git commit`? Because a change travels through three places: your working…
networks/tcp-how-a-network-that-drops-data-still-delivers-every-byte-in-order.md
TCP: how a network that drops data still delivers every byte in order
The internet underneath your apps drops data and makes no promise to deliver it. TCP adds the promise anyway: it numbers every piece, the…
databases/sql-group-by-how-many-rows-become-one-row-per-customer.md
SQL GROUP BY: how many rows become one row per customer
A shop's orders table has 8 rows, but the owner wants one line per customer. GROUP BY sorts rows into piles by a column's value, then an…
computers/race-conditions-why-two-people-adding-1-to-5-can-leave-you-with-6.md
Race conditions: why two people adding 1 to 5 can leave you with 6
Two phones add one item to a shared list of 5, and the list ends up at 6 instead of 7. Nothing is broken, yet an update was lost. This is a…
web/cookies-how-a-website-remembers-you-between-requests.md
Cookies: how a website remembers you between requests
The web forgets you after every request, so how does a site know you are still logged in? With a cookie: a small name and value the server…
languages/ruby-strings-why-changing-b-also-changes-a.md
Ruby strings: why changing b also changes a
In Ruby, `b = a` does not copy a string: it puts a second label on the same object. So `b << "s"` changes `a` too, while `b += "s"` does…
mobile/deep-links-why-one-link-opens-an-app-and-another-opens-a-web-page.md
Deep links: why one link opens an app and another opens a web page
Tap the same link on two phones and one opens an app while the other opens a web page. Who decides, and how? This article explains deep…
ai/next-word-prediction-how-a-chatbot-s-core-trick-is-just-counting.md
Next-word prediction: how a chatbot's core trick is just counting
A chatbot's core job is to guess the next word, and the simplest version of that is just counting. In this article you read a few…
security/password-hashing-why-a-website-never-stores-your-password-and-what-a-s.md
Password hashing: why a website never stores your password, and what a salt changes
Websites should never store your password, only a hash made from it. But two users with the same password get the same hash, and a stolen…
software-design/state-machines-why-an-order-can-t-be-delivered-before-it-s-paid.md
State machines: why an order can't be delivered before it's paid
An online order can be in the cart, paid, shipped, delivered or cancelled, but what stops the code from delivering an order nobody paid…
infrastructure/rolling-deploys-how-a-website-updates-without-going-offline.md
Rolling deploys: how a website updates without going offline
How does a busy website switch to a new version without going offline? Not by replacing everything at once. A rolling deploy updates one…