browse/

156 results
computer-science/recursion-why-fib-30-makes-2-7-million-calls-and-how-a-notebook-fixes.md Recursion: why fib(30) makes 2.7 million calls, and how a notebook fixes it A function that calls itself sounds like an endless loop, but it works when every call gets a smaller problem and one case is simple enough… 5 min read · 8 Oct tools/what-does-1-2-3-mean-in-package-json-version-rules-you-can-try.md What does ^1.2.3 mean in package.json? Version rules you can try Open any package.json and you'll see versions like `^4.17.21` or `~1.2.3`. That little symbol is a rule for which updates npm may install… 5 min read · 8 Oct networks/latency-vs-bandwidth-why-a-faster-plan-can-t-speed-up-a-small-page.md Latency vs bandwidth: why a faster plan can't speed up a small page You upgraded to a much faster internet plan, yet a small web page loads just as slowly. Why? Network speed is two different numbers… 5 min read · 8 Oct databases/database-transactions-why-moving-money-is-all-or-nothing.md Database transactions: why moving money is all or nothing Paying someone is really two changes in a database: take money from one account, add it to another. If the power dies between them, money… 6 min read · 7 Oct computers/cpu-cache-why-reading-a-grid-by-rows-beats-columns-step-by-step.md CPU cache: why reading a grid by rows beats columns, step by step Two loops add up the same grid of numbers, yet one can run about ten times slower. The reason is a small, fast memory inside your processor… 5 min read · 7 Oct web/why-is-my-css-ignored-specificity-scored-with-three-numbers.md Why is my CSS ignored? Specificity, scored with three numbers You write `p { color: red; }`, reload, and the text stays blue. The rule is fine: two rules are competing, and yours lost the contest. The… 4 min read · 7 Oct languages/why-does-5-3-give-53-in-javascript-type-coercion-step-by-step.md Why does "5" + 3 give "53" in JavaScript? Type coercion, step by step Why does `"5" + 3` give `"53"` while `"5" - 3` gives `2`? It is not random. JavaScript follows a short recipe called type coercion: it… 4 min read · 7 Oct mobile/how-does-a-push-notification-find-your-phone-when-the-app-is-closed.md How does a push notification find your phone when the app is closed? A push notification does not come from your app. Your phone keeps one connection to a service run by Apple or Google, and your app's server… 5 min read · 6 Oct ai/tokens-why-a-chatbot-never-reads-your-letters-only-numbered-pieces.md Tokens: why a chatbot never reads your letters, only numbered pieces A chatbot never reads your letters. Before it sees anything, your text is chopped into pieces called tokens, and every piece is swapped for… 6 min read · 6 Oct security/sql-injection-how-a-stray-quote-mark-turns-data-into-instructions.md SQL injection: how a stray quote mark turns data into instructions A search box looks harmless, but if a program builds its database question by gluing text together, a stray quote mark can turn a visitor's… 4 min read · 6 Oct software-design/refactoring-tidy-messy-code-without-breaking-it-using-tests-as-a-net.md Refactoring: tidy messy code without breaking it, using tests as a net Refactoring means changing how code is written without changing what it does, so the next person (often you) can read it. It sounds risky… 5 min read · 6 Oct infrastructure/what-is-a-load-balancer-one-web-address-many-servers.md What is a load balancer? One web address, many servers When you open a popular website you type one address, yet many servers stand behind it. Something has to decide which one answers you. That… 5 min read · 5 Oct