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.

2m read timeFrom blog.stackademic.com
Post cover image
Table of contents
Top 10 Clean Code RulesStackademic
124 Comments

Sort: