Step 10 of 35 · Technical direction
Standards the team actually keeps
A standard is real only when it is written, agreed, enforced by tooling where possible and kept by you first.
Every team has standards. Most are unwritten, held by two people and enforced by argument in code review. That is slow and it feels personal.
Keep few standards and make each one cheap to follow. Agree them with the team, write down the reason, and move everything a machine can check into the formatter, the linter and the build. What is left for people, such as how you test and how you handle errors, should fit on a page.
The common failure is a tech lead who writes the rules alone and then polices them. People comply while you are watching. A standard the team argued over and chose gets defended in reviews you never see. Break it yourself under deadline pressure and it is gone.
Try this week
- List the five review comments you repeat most often. Automate the ones a tool can check and write down the rest.
- Bring one contested convention to the team, decide it together and record the reason.
Signs you've got it
- Review comments about style and formatting have almost disappeared.
- Engineers point each other to the written standard without involving you.
Resources
- bookStyle Guides and Rules (Software Engineering at Google) (opens in a new tab)Shaindel Schwartz
- guideManage technical quality (opens in a new tab)Will Larson
- articleModel, document and share (opens in a new tab)Will Larson
- guideThe Standard of Code Review (Google Engineering Practices) (opens in a new tab)Google