Skip to main content

Clean Code

Principles:

  • Meaningful names, small focused functions.
  • Prefer composition over conditionals.
  • Avoid duplication; make intent obvious.
  • Comments explain why, not what the code does.

Related: /learn/foundations/craftsmanship/solid