Quality & Team

Coding Standards & Style

Foundational

Code is read far more often than it is written, usually by someone other than you, months later. Consistent style and clear naming keep a shared codebase readable as it grows. The goal is not personal taste. It is that any of us can open any file and understand it quickly. Let tools handle the mechanical parts, so reviews focus on what matters.

Standards do two jobs. They end pointless debate (where braces go, tabs versus spaces) by deciding it once and automating it. And they make code predictable, so it is faster to read and safer to change. For a team with many junior engineers, consistency matters even more. It lowers the cost of moving between parts of the codebase and learning from each other.

The most important standard is naming. Names that say what something is and does are the cheapest, most effective documentation there is. After that, let formatters and analysers handle style automatically, so people spend review time on correctness and design, not commas.

Write readable code

Cryptic and dense var d = c.Where(x => x.s == 1 && x.t == tid).ToList(); // what is any of this?

Single-letter names and magic numbers force the next reader (or you, in three months) to decode it. Unreadable code is slow to change and easy to break.

Names that explain themselves var activeCustomers = customers
.Where(c => c.Status == Status.Active && c.TenantId == tenantId)
.ToList();

The intent is clear at a glance. No decoding, no guessing what 1 meant. The code documents itself.

Let tools do the mechanical work

Self-review checklist

Why it matters: A consistent, readable codebase is faster and safer to change, easier to join, and less likely to hide bugs in confusing code. That matters most for a growing, mostly-junior team sharing one system. Automating style frees human attention for the things that really need judgement.