Code is read more often than it is written
Clear code makes future changes easier. Tangled code slows down new features, makes errors harder to find and increases the effort needed to work as a team.
- Single responsibility: each function or component should do one well-defined job.
- Meaningful names: a clear variable or function name can remove the need for explanatory comments.
- Type checking: TypeScript and C# help catch incompatible data and incorrect calls before runtime.