10 Clean Coding Practices
TLDRSanura Hettiarachchi outlines 10 clean coding practices. Follow correct naming conventions to avoid poor naming. Declare variables at the place of use. Minimise extensive nested conditions. Don’t implement super long functions. Avoid code duplication. Make necessary comments.
Table of contents
1. Avoid poor naming2. Follow correct naming conventions3. Create proper method signatures4. Keep method parameter count to a minimum5. Declare variable at the place of use6. Avoid using confusing magic numbers7. Minimise extensive nested conditions8. Don’t implement super long methods9. Avoid code duplication4 Comments
Sort: