Tuesday, July 13, 2010

Top 16 Best Practices for Writing Super Readable Code

1. Commenting & Documentation

2. Consistent Indentation

3. Avoid Obvious Comments

4. Code Grouping

5. Consistent Naming Scheme

6. DRY Principle

7. Avoid Deep Nesting

8. Limit Line Length

9. File and Folder Organization

10. Consistent Temporary Names

11. Capitalize SQL Special Words

12. Separation of Code and Data

13. Alternate Syntax Inside Templates

14. Object Oriented vs. Procedural

15. Read Open Source Code

16. Code Refactoring

No comments: