πDaily
Day 2
Tony Duong
Mar 12, 2026 Β· 2 min
#engineering#keystatic#cms#nextjs#i18n#rails#claude-code#ddia#databases
Today, I:
- added Keystatic to the project to manage the blog posts. It's a headless CMS that allows us to manage the blog posts from a central location. Not sure if I am going to use it because there is no AI integration yet.
- fix a redirection problem when visiting a post in a different language than the one it's written in.
- learned about compound engineering β the practice of making small, consistent improvements that accumulate into significant gains over time, like compound interest. Each improvement builds on the last, so the value grows exponentially rather than linearly.
- watched How a Meta Staff Engineer Uses Claude Code by John Kim β 50 tips on moving from manual coding to agentic orchestration with Claude Code. I wrote my notes on it.
- learned that in Rails, columns used with
dependent: :nullifyon destroy should have a database index to accelerate the queries that update those rows. For example, if aUserhas manycommentswithdependent: :nullify, destroying a user runsUPDATE comments SET user_id = NULL WHERE user_id = ?β without an index oncomments.user_id, this triggers a full table scan - learned that placing
CLAUDE.mdfiles in specific subdirectories rather than only at the root can save tokens β rules that only apply to a subset of files (e.g.app/controllers/CLAUDE.mdfor parameter validation patterns or the comment convention specifying the HTTP operation and path above each method) are only loaded when Claude works in that folder - had an off day β made too many easy mistakes, mostly code not matching the specs. Tomorrow will be better
- read Chapter 2 of Designing Data-Intensive Applications β data models and query languages. I wrote my notes on it