browse/

5 results
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 web/http-requests-and-responses-what-a-404-and-a-301-really-say.md HTTP requests and responses: what a 404 and a 301 really say Every web page starts as two short pieces of plain text: a request from your browser and a response from a server. Learn to read them and… 4 min read · 10 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 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 software-design/how-to-read-a-python-error-message-without-panicking.md How to read a Python error message without panicking When Python crashes it prints a traceback: a report of what went wrong and where. It looks scary, but it has a fixed shape, and the most… 11 min read · 1 Oct