Skip to content

Latest commit

 

History

History
4 lines (4 loc) · 796 Bytes

File metadata and controls

4 lines (4 loc) · 796 Bytes
  • Don't extract single-use code into separate methods/functions. If logic is used once, keep it inline near the call site.
  • Don't remove blank lines that separate logical blocks of code. Preserve those line breaks when editing files.
  • Preserve architectural boundaries and module invariants. When extending behavior, integrate through the module's existing abstraction boundary instead of adding side paths, duplicating protocol/validation/error-handling logic, or reaching into lower-level internals for a local shortcut.
  • Keep coordination boundaries minimal. When code relies on locks, transactions, lifecycle hooks, retries, or other ordering-sensitive boundaries, keep only the minimal commit step inside them; move computation, I/O, logging, and complex calls outside whenever possible.