THE NOTEBOOK

Blogs.

Notes on building software, learning things, and everything in between.

FILTER BY TAG14 / 14
ALL POSTS14 ENTRIES
Jul 31, 2025
PostgreSQL

A Missing PostgreSQL Index

A missing index turned a pre-release test into a production fire, and the zero-downtime fix.

4 min read
Jul 31, 2025
Security

AuthZ in production

RBAC vs ABAC, policy-as-code, and OPA: how authorization works in production systems.

6 min read
Apr 29, 2025
PostgreSQL

Using PostgreSQL CTEs

A practical guide to writing readable, correct queries with PostgreSQL common table expressions.

7 min read
Jul 19, 2023
CP

How do you win at Nim?

From one pile to three: winning and losing positions, and the xor rule that decides them all.

4 min read
Jul 16, 2022
CP

What is a trie, and why use one?

Prefix trees for autocomplete, spellcheck, and xor queries — structure, tradeoffs, and Codeforces problems.

6 min read
Feb 17, 2022
CP

How does a segment tree work?

Build, query, and update a segment tree for range sums, with diagrams and C++ you can steal.

7 min read
Jan 1, 2021
MetaSAMPLE

Hello, Markdown

A style test covering every Markdown element this blog supports.

3 min read