Should You Use Custom ID Types or Plain Strings?
Should you use a custom ID type or just stick to strings? Sticking to raw strings is simpler and faster to write, but wrapping your IDs in a custom domain type prevents developer mistakes—like running

Search for a command to run...
Articles tagged with #cleancode
Should you use a custom ID type or just stick to strings? Sticking to raw strings is simpler and faster to write, but wrapping your IDs in a custom domain type prevents developer mistakes—like running

Quick Answer: Code is "correct by coincidence" when it relies on duplicated, fragile details—like matching magic strings—that just happen to align perfectly to make the application work. Code is "corr

Quick Answer: That sudden feeling of dread when opening a code file is a highly valuable engineering signal from your subconscious "lizard brain." Before your logical mind processes the mess, your gut

Quick Answer: Elite software teams treat documentation as a first-class citizen. API specs and inline comments are just as vital as the code itself. Without explaining the "why" and "how," I've seen t

TL;DR: Quick Answer If your codebase doesn't contain the exact nouns and verbs you use to prompt your AI coding agent, the agent will do a much worse job. By ensuring your code reflects your spoken do

Quick Answer: AI coding agents default to writing dense, monolithic scripts because they seek the path of least resistance to your desired outcome. To fix this, you must explicitly define what "good c
