Code Quality

What does it mean for code to be high quality?

It works, it is secure, it is easy to change, and it works well for the user.

How do we achieve that?1:

  • High standards
    • quality checks that must be done to get into production (passing tests, test coverage, linters)
    • Security reviews
  • Metrics: you need end user metrics to capture the user experience
  • Ownership: the person/team who writes the code must be the team/person who maintains the code and owns the pager when production goes down
  • Think about failure patterns

References

1.
Caropreso, M. The False Trade-off between Quality and Speed. at https://maruz.medium.com/the-false-trade-off-between-quality-and-speed-7f0f9e93fdd (2022).

Links to this note