Guidance for writing clean code includes no code comments, deleting dead code, unit testing boundaries, using positive conditionals, adhering to standard guidelines, consistent naming, avoiding complexity, using exceptions instead of return codes, keeping methods small, and applying the Boy Scout rule to always leave the code cleaner than you found it.

1 Comment

Sort: