## today i learned
One note per thing understood. Written to be reread — future-me and interview-me are the audience. RSS
why constructor injection beats @Autowired fields
Field injection hides dependencies and breaks plain unit tests without spinning up a Spring context. Constructor injection enforces `final` immutability, makes dependencies explicit, and fails fast on circular wiring.
Nov 4, 2026rootless containers & podman quadlets
Running containers rootless means a breakout doesn't give host root, and Podman Quadlets compile declarative `.container` files straight into native systemd units—no background root daemon or compose wrapper needed.
Oct 14, 2026why strict CSP blocks inline script shims
Even small inline `<script>` helpers break under a strict Content Security Policy without nonces or hashes. Moving parameter shims into external module files keeps strict CSP intact without weakening headers with `'unsafe-inline'`.
Sep 22, 2026deterministic simulation for raft
Normal unit tests rarely catch split-brain or partition edge cases. Replacing wall clocks and real sockets with seeded deterministic simulation lets you inject faults, replay exact seeds, and prove 0-violation invariants.