πŸ“Daily

Day 2

Tony Duong

Tony Duong

Mar 12, 2026 Β· 2 min

#engineering#keystatic#cms#nextjs#i18n#rails#claude-code#ddia#databases
Day 2

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: :nullify on destroy should have a database index to accelerate the queries that update those rows. For example, if a User has many comments with dependent: :nullify, destroying a user runs UPDATE comments SET user_id = NULL WHERE user_id = ? β€” without an index on comments.user_id, this triggers a full table scan
  • learned that placing CLAUDE.md files 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.md for 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
Tony Duong

By Tony Duong

A digital diary. Thoughts, experiences, and reflections.